[llvm-commits] [llvm] r119907 - /llvm/trunk/include/llvm/ADT/StringMap.h
Frits van Bommel
fvbommel at gmail.com
Sat Nov 20 10:37:24 PST 2010
Author: fvbommel
Date: Sat Nov 20 12:37:24 2010
New Revision: 119907
URL: http://llvm.org/viewvc/llvm-project?rev=119907&view=rev
Log:
Test commit: Fix two -Asserts mode warnings in StringMap.h.
Modified:
llvm/trunk/include/llvm/ADT/StringMap.h
Modified: llvm/trunk/include/llvm/ADT/StringMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringMap.h?rev=119907&r1=119906&r2=119907&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringMap.h (original)
+++ llvm/trunk/include/llvm/ADT/StringMap.h Sat Nov 20 12:37:24 2010
@@ -265,10 +265,12 @@
: 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();
}
More information about the llvm-commits
mailing list