[llvm] r349975 - Silence warning in assert introduced in rL349973.
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 21 15:02:11 PST 2018
Author: mtrofin
Date: Fri Dec 21 15:02:10 2018
New Revision: 349975
URL: http://llvm.org/viewvc/llvm-project?rev=349975&view=rev
Log:
Silence warning in assert introduced in rL349973.
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D56030
Modified:
llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp
Modified: llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp?rev=349975&r1=349974&r2=349975&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp Fri Dec 21 15:02:10 2018
@@ -137,6 +137,7 @@ bool X86DiscriminateMemOps::runOnMachine
Changed = true;
std::pair<DenseSet<unsigned>::iterator, bool> MustInsert =
Set.insert(DI->getBaseDiscriminator());
+ (void)MustInsert; // Silence warning in release build.
assert(MustInsert.second && "New discriminator shouldn't be present in set");
}
More information about the llvm-commits
mailing list