[llvm-commits] [LLVM] SwitchInst PATCH: Changes in semantics and usage.

Stepan Dyatkovskiy stpworld at narod.ru
Sat Jan 21 00:34:36 PST 2012


Stepan Dyatkovskiy wrote:
> Hi all. I updated patch. I edited implementation of SwitchInst::addCase.
> Here next code is used:
>    OperandList[OpNo] = OnVal;
>    OperandList[OpNo+1] = Dest;
> But instead it means:
>    setCaseValue(NewCaseIdx, OnVal);
>    setCaseSuccessor(NewCaseIdx, Dest);
> So I made correspond replacement.
> Please find the modified patch in attachment.
> -Stepan.

More information about the llvm-commits mailing list