diff options
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index fa57e91..eded8c4 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -720,7 +720,7 @@ Module *RunVMAsmParser(const std::string &Filename, FILE *F) { // Other Operators %type <OtherOpVal> ShiftOps -%token <OtherOpVal> PHI CALL INVOKE CAST SHL SHR +%token <OtherOpVal> PHI CALL INVOKE CAST SHL SHR VA_ARG %start Module %% @@ -1614,6 +1614,10 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef { $$ = new CastInst($2, *$4); delete $4; } + | VA_ARG ResolvedVal ',' Types { + $$ = new VarArgInst($2, *$4); + delete $4; + } | PHI PHIList { const Type *Ty = $2->front().first->getType(); $$ = new PHINode(Ty); |