[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Thu May 15 16:31:01 PDT 2003
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.110 -> 1.111
---
Log message:
Fix bug: Assembler/2003-05-15-SwitchBug.ll
---
Diffs of the changes:
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.110 llvm/lib/AsmParser/llvmAsmParser.y:1.111
--- llvm/lib/AsmParser/llvmAsmParser.y:1.110 Wed May 7 21:44:01 2003
+++ llvm/lib/AsmParser/llvmAsmParser.y Thu May 15 16:30:00 2003
@@ -1464,6 +1464,11 @@
for (; I != E; ++I)
S->dest_push_back(I->first, I->second);
}
+ | SWITCH IntType ValueRef ',' LABEL ValueRef '[' ']' {
+ SwitchInst *S = new SwitchInst(getVal($2, $3),
+ cast<BasicBlock>(getVal(Type::LabelTy, $6)));
+ $$ = S;
+ }
| INVOKE TypesV ValueRef '(' ValueRefListE ')' TO ResolvedVal
EXCEPT ResolvedVal {
const PointerType *PFTy;
More information about the llvm-commits
mailing list