[llvm-commits] [llvm] r139341 - /llvm/trunk/lib/Object/MachOObjectFile.cpp
Nick Lewycky
nicholas at mxc.ca
Thu Sep 8 17:16:50 PDT 2011
Author: nicholas
Date: Thu Sep 8 19:16:50 2011
New Revision: 139341
URL: http://llvm.org/viewvc/llvm-project?rev=139341&view=rev
Log:
Fix release build:
MachOObjectFile.cpp:524: error: unused variable 'NumLoadCommands' [-Wunused-variable]
Modified:
llvm/trunk/lib/Object/MachOObjectFile.cpp
Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=139341&r1=139340&r2=139341&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Thu Sep 8 19:16:50 2011
@@ -521,12 +521,11 @@
DataRefImpl Sym;
Sym.d.a = Sym.d.b = 0;
moveToNextSymbol(Sym);
- uint32_t NumLoadCommands = MachOObj->getHeader().NumLoadCommands;
if (isExtern) {
for (unsigned i = 0; i < SymbolIdx; i++) {
Sym.d.b++;
moveToNextSymbol(Sym);
- assert(Sym.d.a < NumLoadCommands &&
+ assert(Sym.d.a < MachOObj->getHeader().NumLoadCommands &&
"Relocation symbol index out of range!");
}
}
@@ -625,4 +624,3 @@
}
} // end namespace llvm
-
More information about the llvm-commits
mailing list