diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-01 22:42:01 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-01 22:42:01 +0000 |
| commit | 8a95b0bf21f64f066ba25f928aeaf218d5a01a4d (patch) | |
| tree | 0f65b40e5d3c3d9c7ffdb9e24d76fb6df1757e17 /llvm/tools/llvm-upgrade/UpgradeParser.y.cvs | |
| parent | d321248d96b0c1c666853ada8f9debe686ef8c11 (diff) | |
| download | bcm5719-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.cvs | 4 |
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; |

