[llvm-commits] [llvm] r122195 - /llvm/trunk/include/llvm/ADT/DenseMap.h
Nick Lewycky
nicholas at mxc.ca
Sun Dec 19 12:57:15 PST 2010
Author: nicholas
Date: Sun Dec 19 14:57:14 2010
New Revision: 122195
URL: http://llvm.org/viewvc/llvm-project?rev=122195&view=rev
Log:
Use the new way of silencing this warning.
Modified:
llvm/trunk/include/llvm/ADT/DenseMap.h
Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=122195&r1=122194&r2=122195&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Sun Dec 19 14:57:14 2010
@@ -386,7 +386,7 @@
// Insert the key/value into the new table.
BucketT *DestBucket;
bool FoundVal = LookupBucketFor(B->first, DestBucket);
- FoundVal = FoundVal; // silence warning.
+ (void)FoundVal; // silence warning.
assert(!FoundVal && "Key already in new map?");
DestBucket->first = B->first;
new (&DestBucket->second) ValueT(B->second);
More information about the llvm-commits
mailing list