summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/DenseMap.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-12-19 20:57:14 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-12-19 20:57:14 +0000
commit9d38acb254108db0ee9e746bb3f7aa64168f7e36 (patch)
treeb7afc38020f63f975eab598f2bb3c31e31a36c39 /include/llvm/ADT/DenseMap.h
parent476b242fe7a61e5f9ac6214b0bc5c680d24f152e (diff)
downloadllvm-9d38acb254108db0ee9e746bb3f7aa64168f7e36.tar.gz
llvm-9d38acb254108db0ee9e746bb3f7aa64168f7e36.tar.bz2
llvm-9d38acb254108db0ee9e746bb3f7aa64168f7e36.tar.xz
Use the new way of silencing this warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/DenseMap.h')
-rw-r--r--include/llvm/ADT/DenseMap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h
index f9f37b81a3..61d6ae70e1 100644
--- a/include/llvm/ADT/DenseMap.h
+++ b/include/llvm/ADT/DenseMap.h
@@ -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);