Skip to content

Commit

Permalink
Silence warning in assert introduced in rL349973.
Browse files Browse the repository at this point in the history
Subscribers: llvm-commits

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

llvm-svn: 349975
  • Loading branch information
mtrofin committed Dec 21, 2018
1 parent f747971 commit 499a66e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/X86/X86DiscriminateMemOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 499a66e

Please sign in to comment.