[llvm-dev] Must switch instruction be in multiple lines

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 28 09:01:39 PST 2019

On Mon, 28 Jan 2019 at 15:43, Peng Yu via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> The langref shows the following. It is in multiple llines. Is there a
> way to make it in one line. Or the format requires it to be in
> multiple lines.
> switch i32 %val, label %otherwise [ i32 0, label %onzero
>                                     i32 1, label %onone
>                                     i32 2, label %ontwo ]

Have you tried writing it on one line to see what happens? That would
be the obvious first step.



More information about the llvm-dev mailing list