summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFrits van Bommel <fvbommel@gmail.com>2010-11-20 18:37:24 +0000
committerFrits van Bommel <fvbommel@gmail.com>2010-11-20 18:37:24 +0000
commit1c3f050309592e034972dc77a2eb4025680ff293 (patch)
tree42153029dae7307699b506577f7c20e6a3847811 /include
parent0dbe54e8445decd1b45f595bd9e8ed416ad53a53 (diff)
downloadllvm-1c3f050309592e034972dc77a2eb4025680ff293.tar.gz
llvm-1c3f050309592e034972dc77a2eb4025680ff293.tar.bz2
llvm-1c3f050309592e034972dc77a2eb4025680ff293.tar.xz
Test commit: Fix two -Asserts mode warnings in StringMap.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/StringMap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h
index d047a42079..752f55c226 100644
--- a/include/llvm/ADT/StringMap.h
+++ b/include/llvm/ADT/StringMap.h
@@ -265,10 +265,12 @@ public:
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {
assert(RHS.empty() &&
"Copy ctor from non-empty stringmap not implemented yet!");
+ (void)RHS;
}
void operator=(const StringMap &RHS) {
assert(RHS.empty() &&
"assignment from non-empty stringmap not implemented yet!");
+ (void)RHS;
clear();
}