projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
476b242
)
Use the new way of silencing this warning.
author
Nick Lewycky
<nicholas@mxc.ca>
Sun, 19 Dec 2010 20:57:14 +0000
(20:57 +0000)
committer
Nick 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
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/DenseMap.h
b/include/llvm/ADT/DenseMap.h
index f9f37b81a31ed3cfcf5eb74cc773fc463facae59..61d6ae70e1d939dea4dca4936ce0d98518542cf8 100644
(file)
--- 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);