summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-01 22:42:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-01 22:42:01 +0000
commit8a95b0bf21f64f066ba25f928aeaf218d5a01a4d (patch)
tree0f65b40e5d3c3d9c7ffdb9e24d76fb6df1757e17 /llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
parentd321248d96b0c1c666853ada8f9debe686ef8c11 (diff)
downloadbcm5719-llvm-8a95b0bf21f64f066ba25f928aeaf218d5a01a4d.tar.gz
bcm5719-llvm-8a95b0bf21f64f066ba25f928aeaf218d5a01a4d.zip
Don't convert {} into []!
llvm-svn: 32106
Diffstat (limited to 'llvm/tools/llvm-upgrade/UpgradeParser.y.cvs')
-rw-r--r--llvm/tools/llvm-upgrade/UpgradeParser.y.cvs4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs b/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
index 79c1d947f6f..e5f9035c254 100644
--- a/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
+++ b/llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
@@ -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;
OpenPOWER on IntegriCloud