diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y index ca8ee4f52e0..d5292a0464a 100644 --- a/tools/llvm-upgrade/UpgradeParser.y +++ b/tools/llvm-upgrade/UpgradeParser.y @@ -1160,12 +1160,12 @@ ConstExpr: CastOps '(' ConstVal TO Types ')' { $$ = $1; } | ICMP IPredicates '(' ConstVal ',' ConstVal ')' { - *$1 += "(" + *$2 + "," + *$4.cnst + "," + *$6.cnst + ")"; + *$1 += " " + *$2 + " (" + *$4.cnst + "," + *$6.cnst + ")"; delete $2; $4.destroy(); $6.destroy(); $$ = $1; } | FCMP FPredicates '(' ConstVal ',' ConstVal ')' { - *$1 += "(" + *$2 + "," + *$4.cnst + "," + *$6.cnst + ")"; + *$1 += " " + *$2 + " (" + *$4.cnst + "," + *$6.cnst + ")"; delete $2; $4.destroy(); $6.destroy(); $$ = $1; }