Use the new way of silencing this warning.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 19 Dec 2010 20:57:14 +0000 (20:57 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 19 Dec 2010 20:57:14 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122195 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseMap.h

index f9f37b81a31ed3cfcf5eb74cc773fc463facae59..61d6ae70e1d939dea4dca4936ce0d98518542cf8 100644 (file)
@@ -386,7 +386,7 @@ private:
         // 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);