[llvm] r180140 - Make sure the instruction right after an inlined function has a

David Blaikie dblaikie at gmail.com
Tue Apr 23 17:17:26 PDT 2013


What Eric mentioned (though I'm not sure about the "tidy up
attributes" thing - I'm mostly OK with simple compilations of C++ code
with Clang & taking whatever it produces from minimal code - adding
extra flags to simplify the IR... I'm on the fence about that)

> +; CHECK: _Z4testi.exit:
> +; Make sure the branch instruction created during inlining has a debug location
> +; CHECK: br label %invoke.cont, !dbg !20
> +; The branch instruction has source location of line 8 and its inlined location
> +; has source location of line 13.
> +; CHECK: !11 = metadata !{i32 13, i32 0, metadata !12, null}
> +; CHECK: !20 = metadata !{i32 8, i32 0, metadata !8, metadata !11}

But could you make sure not to hardcode metadata node numbers, but
instead use regex matches?



More information about the llvm-commits mailing list