Don't convert {} into []!

llvm-svn: 32106
This commit is contained in:
Reid Spencer 2006-12-01 22:42:01 +00:00
parent d321248d96
commit 8a95b0bf21
4 changed files with 8 additions and 8 deletions

View File

@ -2279,7 +2279,7 @@ yyreduce:
case 107:
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
{ // Empty structure type?
(yyval.Type).newTy = new std::string("{ }");
(yyval.Type).newTy = new std::string("{}");
(yyval.Type).oldTy = StructTy;
;}
break;
@ -2386,7 +2386,7 @@ yyreduce:
{
(yyval.Const).type = (yyvsp[-2].Type);
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
*(yyval.Const).cnst += " [ ]";
*(yyval.Const).cnst += " {}";
;}
break;

View File

@ -2279,7 +2279,7 @@ yyreduce:
case 107:
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
{ // Empty structure type?
(yyval.Type).newTy = new std::string("{ }");
(yyval.Type).newTy = new std::string("{}");
(yyval.Type).oldTy = StructTy;
;}
break;
@ -2386,7 +2386,7 @@ yyreduce:
{
(yyval.Const).type = (yyvsp[-2].Type);
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
*(yyval.Const).cnst += " [ ]";
*(yyval.Const).cnst += " {}";
;}
break;

View 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;

View 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;