Fix bug: Assembler/2003-05-15-SwitchBug.ll

llvm-svn: 6239
This commit is contained in:
Chris Lattner 2003-05-15 21:30:00 +00:00
parent 021249f3f3
commit 9f3648bf02
1 changed files with 5 additions and 0 deletions

View File

@ -1464,6 +1464,11 @@ BBTerminatorInst : RET ResolvedVal { // Return with a result...
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;