[LLVMdev] Problem with labels
Tim Northover
t.p.northover at gmail.com
Thu Nov 21 02:44:04 PST 2013
Hi Tim,
> I wanted to ask how to solve this / where labels can be placed?
Labels can only be placed at the start of a basic block, which means
they must go directly after a terminator instruction (see
http://llvm.org/docs/LangRef.html).
Essentially, LLVM doesn't have implicit-fallthrough, so you need to
insert "br label %Until2" just before that label to tell LLVM about it
(assuming your control-flow is otherwise correct).
Cheers.
Tim.
More information about the llvm-dev
mailing list