Silence a warning from non-standard warning avoidance code.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 5 Jan 2011 21:50:21 +0000 (21:50 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 5 Jan 2011 21:50:21 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122911 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/PassRegistry.cpp

index af118988b6b98c3295053e250807b59ef307fdcb..c97a170f501f63094ba367f29075ebb890e884f3 100644 (file)
@@ -106,7 +106,8 @@ void PassRegistry::registerPass(const PassInfo &PI, bool ShouldFree) {
   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.