diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-09-09 00:16:50 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-09-09 00:16:50 +0000 |
commit | 58856eae1629f7176f2dbde822bb4220773f72fc (patch) | |
tree | 761bc10a5a4122f39828d462f98242b6502c866f /lib/Object | |
parent | c170f5f31cd697818bf470b57b72c11a1da78010 (diff) |
Fix release build:
MachOObjectFile.cpp:524: error: unused variable 'NumLoadCommands' [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/MachOObjectFile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp index ce202cfe32..c4abde8abc 100644 --- a/lib/Object/MachOObjectFile.cpp +++ b/lib/Object/MachOObjectFile.cpp @@ -521,12 +521,11 @@ error_code MachOObjectFile::getRelocationSymbol(DataRefImpl Rel, 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 @@ unsigned MachOObjectFile::getArch() const { } } // end namespace llvm - |