[llvm-commits] [llvm] r122911 - /llvm/trunk/lib/VMCore/PassRegistry.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jan 5 13:50:21 PST 2011
Author: stoklund
Date: Wed Jan 5 15:50:21 2011
New Revision: 122911
URL: http://llvm.org/viewvc/llvm-project?rev=122911&view=rev
Log:
Silence a warning from non-standard warning avoidance code.
Modified:
llvm/trunk/lib/VMCore/PassRegistry.cpp
Modified: llvm/trunk/lib/VMCore/PassRegistry.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassRegistry.cpp?rev=122911&r1=122910&r2=122911&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassRegistry.cpp (original)
+++ llvm/trunk/lib/VMCore/PassRegistry.cpp Wed Jan 5 15:50:21 2011
@@ -106,7 +106,8 @@
PassRegistryImpl *Impl = static_cast<PassRegistryImpl*>(getImpl());
bool Inserted =
Impl->PassInfoMap.insert(std::make_pair(PI.getTypeInfo(),&PI)).second;
- assert(Inserted && "Pass registered multiple times!"); Inserted=Inserted;
+ assert(Inserted && "Pass registered multiple times!");
+ (void)Inserted;
Impl->PassInfoStringMap[PI.getPassArgument()] = &PI;
// Notify any listeners.
More information about the llvm-commits
mailing list