Index: llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp =================================================================== --- llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp +++ llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp @@ -114,7 +114,9 @@ Changed = true; const std::pair::iterator, bool> MustInsert = Set.insert(DI->getBaseDiscriminator()); - assert(MustInsert.second); + (void)MustInsert; // silence warning. + assert(MustInsert.second && + "New discriminator shouldn't be present in set"); } // Bump the reference DI to avoid cramming discriminators on line 0.