[lld] r232015 - Avoid an unused variable warning when assertions are off
Justin Bogner
mail at justinbogner.com
Wed Mar 11 23:50:54 PDT 2015
Author: bogner
Date: Thu Mar 12 01:50:54 2015
New Revision: 232015
URL: http://llvm.org/viewvc/llvm-project?rev=232015&view=rev
Log:
Avoid an unused variable warning when assertions are off
Patch by Mike Edwards. Thanks!
Modified:
lld/trunk/lib/ReaderWriter/MachO/StubsPass.cpp
Modified: lld/trunk/lib/ReaderWriter/MachO/StubsPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/StubsPass.cpp?rev=232015&r1=232014&r2=232015&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/StubsPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/StubsPass.cpp Thu Mar 12 01:50:54 2015
@@ -274,6 +274,7 @@ public:
}
}
assert(binderFound && "dyld_stub_binder not found");
+ (void)binderFound;
// Sort targets by name, so stubs and lazy pointers are consistent
std::vector<const Atom *> targetsNeedingStubs;
More information about the llvm-commits
mailing list