[PATCH] Fix line numbers for code inlined from __nodebug__ functions.

Evgeniy Stepanov eugenis at google.com
Mon Jun 9 02:18:25 PDT 2014

Thanks, committed as r210459.

Comment at: test/DebugInfo/inline-no-debug-info.ll:23
@@ +22,3 @@
+; Debug location of the inlined code.
+; CHECK-DAG: [[B]] = metadata !{i32 2, i32 0, metadata !{{[01-9]+}}, metadata !{{[01-9]+}}}
David Blaikie wrote:
> It's probably worth having a similar check line for the value of A to demonstrate that they're both located at line 3, not line 2? (and if you like, you can omit everything after the field you care about (the first field, in this instance: "CHECK: [[X]] = metadata !{i32 42,") - but I don't feel strongly about it))
I've left all metadata fields to verify that B is an inlined location, and A is not.


More information about the llvm-commits mailing list