[PATCH] D56030: Silence warning in assert introduced in rL349973.
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 21 15:07:12 PST 2018
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL349975: Silence warning in assert introduced in rL349973. (authored by mtrofin, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56030/new/
https://reviews.llvm.org/D56030
Files:
llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp
Index: llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp
+++ llvm/trunk/lib/Target/X86/X86DiscriminateMemOps.cpp
@@ -137,6 +137,7 @@
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");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56030.179370.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181221/b023b93d/attachment.bin>
More information about the llvm-commits
mailing list