diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-05 21:50:21 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-05 21:50:21 +0000 |
commit | 7008f1e9ab3e455955bac764282b62d51b5ae523 (patch) | |
tree | 67ce18670cd96510108b44ea0dbf96cf0e33d6b9 /lib/VMCore | |
parent | 762a17a040f2e5c7f76b6b85d853cca454289e71 (diff) | |
download | external_llvm-7008f1e9ab3e455955bac764282b62d51b5ae523.zip external_llvm-7008f1e9ab3e455955bac764282b62d51b5ae523.tar.gz external_llvm-7008f1e9ab3e455955bac764282b62d51b5ae523.tar.bz2 |
Silence a warning from non-standard warning avoidance code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/PassRegistry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/PassRegistry.cpp b/lib/VMCore/PassRegistry.cpp index af11898..c97a170 100644 --- a/lib/VMCore/PassRegistry.cpp +++ b/lib/VMCore/PassRegistry.cpp @@ -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. |