forked from OSchip/llvm-project
parent
2bbc2a165d
commit
bb59a90b7a
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -333,7 +333,7 @@
|
|||
|
||||
|
||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||
#line 270 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
||||
#line 270 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y"
|
||||
typedef union YYSTYPE {
|
||||
std::string* String;
|
||||
TypeInfo Type;
|
||||
|
|
|
@ -333,7 +333,7 @@
|
|||
|
||||
|
||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||
#line 270 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
||||
#line 270 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y"
|
||||
typedef union YYSTYPE {
|
||||
std::string* String;
|
||||
TypeInfo Type;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#define YYERROR_VERBOSE 1
|
||||
#define YYINCLUDED_STDLIB_H
|
||||
#define YYDEBUG 1
|
||||
#define UPGRADE_SETCOND_OPS 0
|
||||
#define UPGRADE_SETCOND_OPS 1
|
||||
|
||||
int yylex(); // declaration" of xxx warnings.
|
||||
int yyparse();
|
||||
|
@ -255,7 +255,7 @@ getCompareOp(const std::string& setcc, const TypeInfo& TI) {
|
|||
result.erase(5,1);
|
||||
else if (TI.isSigned())
|
||||
result[5] = 's';
|
||||
else if (TI.isUnsigned() || TI.isPointer())
|
||||
else if (TI.isUnsigned() || TI.isPointer() || TI.isBool())
|
||||
result[5] = 'u';
|
||||
else
|
||||
yyerror("Invalid integral type for setcc");
|
||||
|
|
Loading…
Reference in New Issue