[llvm] r198379 - Fix break introduced in r198377 due to using a local type as a template parameter.

David Blaikie dblaikie at gmail.com
Thu Jan 2 16:00:41 PST 2014


Author: dblaikie
Date: Thu Jan  2 18:00:41 2014
New Revision: 198379

URL: http://llvm.org/viewvc/llvm-project?rev=198379&view=rev
Log:
Fix break introduced in r198377 due to using a local type as a template parameter.

Modified:
    llvm/trunk/unittests/ADT/StringMapTest.cpp

Modified: llvm/trunk/unittests/ADT/StringMapTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/StringMapTest.cpp?rev=198379&r1=198378&r2=198379&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/StringMapTest.cpp (original)
+++ llvm/trunk/unittests/ADT/StringMapTest.cpp Thu Jan  2 18:00:41 2014
@@ -204,13 +204,13 @@ TEST_F(StringMapTest, InsertTest) {
 }
 
 // Create a non-default constructable value
-TEST_F(StringMapTest, NonDefaultConstructable) {
-  struct StringMapTestStruct {
-    StringMapTestStruct(int i) : i(i) {}
-    StringMapTestStruct() LLVM_DELETED_FUNCTION;
-    int i;
-  };
+struct StringMapTestStruct {
+  StringMapTestStruct(int i) : i(i) {}
+  StringMapTestStruct() LLVM_DELETED_FUNCTION;
+  int i;
+};
 
+TEST_F(StringMapTest, NonDefaultConstructable) {
   StringMap<StringMapTestStruct> t;
   t.GetOrCreateValue("Test", StringMapTestStruct(123));
   StringMap<StringMapTestStruct>::iterator iter = t.find("Test");





More information about the llvm-commits mailing list