Don't convert {} into []!
[oota-llvm.git] / tools / llvm-upgrade / UpgradeParser.y.cvs
index 79c1d947f6f40c05903a403b87a72e905d318c43..e5f9035c254e58bef566bc70ed02582652c00f8a 100644 (file)
@@ -327,7 +327,7 @@ UpRTypes : '\\' EUINT64VAL {                   // Type UpReference
     $$.oldTy = StructTy;
   }
   | '{' '}' {                                  // Empty structure type?
-    $$.newTy = new std::string("{ }");
+    $$.newTy = new std::string("{}");
     $$.oldTy = StructTy;
   }
   | UpRTypes '*' {                             // Pointer type?
@@ -402,7 +402,7 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr
   | Types '{' '}' {
     $$.type = $1;
     $$.cnst = new std::string(*$1.newTy);
-    *$$.cnst += " [ ]";
+    *$$.cnst += " {}";
   }
   | Types NULL_TOK {
     $$.type = $1;