Silence warning in assert introduced in rL349973.

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D56030

llvm-svn: 349975
This commit is contained in:
Mircea Trofin 2018-12-21 23:02:10 +00:00
parent f747971bf1
commit 499a66ecc0
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ bool X86DiscriminateMemOps::runOnMachineFunction(MachineFunction &MF) {
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");
}