mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Switchinst takes a hint for the number of cases it will have.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19899 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
378805969e
commit
667fdaef9f
@ -352,7 +352,7 @@ LowerSetJmp::SwitchValuePair LowerSetJmp::GetSJSwitch(Function* Func,
|
||||
CallInst(TryCatchLJ, make_vector<Value*>(GetSetJmpMap(Func), 0), "SJNum");
|
||||
DecisionBBIL.push_back(SJNum);
|
||||
|
||||
SwitchInst* SI = new SwitchInst(SJNum, Rethrow, DecisionBB);
|
||||
SwitchInst* SI = new SwitchInst(SJNum, Rethrow, 0, DecisionBB);
|
||||
return SwitchValMap[Func] = SwitchValuePair(SI, LJVal);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user