Skip to content

Commit 336bdf1

Browse files
committed
[verify-uselistorder] Fix a typo, fix linking
This fixes a typo from 2ef6120, which broke the build with errors like: ld.lld: error: undefined symbol: LoadBitcodeIntoNewDbgInforFormat >>> referenced by verify-uselistorder.cpp >>> tools/verify-uselistorder/CMakeFiles/verify-uselistorder.dir/verify-uselistorder.cpp.o:(main) >>> did you mean: LoadBitcodeIntoNewDbgInfoFormat >>> defined in: lib/libLLVMBitReader.a(BitcodeReader.cpp.o) collect2: error: ld returned 1 exit status
1 parent 7434a6b commit 336bdf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/tools/verify-uselistorder/verify-uselistorder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static cl::opt<unsigned>
6868
cl::desc("Number of times to shuffle and verify use-lists"),
6969
cl::init(1), cl::cat(Cat));
7070

71-
extern cl::opt<cl::boolOrDefault> LoadBitcodeIntoNewDbgInforFormat;
71+
extern cl::opt<cl::boolOrDefault> LoadBitcodeIntoNewDbgInfoFormat;
7272

7373
namespace {
7474

@@ -546,8 +546,8 @@ int main(int argc, char **argv) {
546546
"llvm tool to verify use-list order\n");
547547

548548
// Do not load bitcode into the new debug info format by default.
549-
if (LoadBitcodeIntoNewDbgInforFormat == cl::boolOrDefault::BOU_UNSET)
550-
LoadBitcodeIntoNewDbgInforFormat = cl::boolOrDefault::BOU_FALSE;
549+
if (LoadBitcodeIntoNewDbgInfoFormat == cl::boolOrDefault::BOU_UNSET)
550+
LoadBitcodeIntoNewDbgInfoFormat = cl::boolOrDefault::BOU_FALSE;
551551

552552
LLVMContext Context;
553553
SMDiagnostic Err;

0 commit comments

Comments
 (0)