Verifier: Verify that each inlinable callsite of a debug-info-bearing function
authorAdrian Prantl <aprantl@apple.com>
Sun, 24 Apr 2016 22:23:13 +0000 (22:23 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sun, 24 Apr 2016 22:23:13 +0000 (22:23 +0000)
commit93035c8f47589590b65041603524f48a7c007e1f
tree59a23b722e790e923a44f3896d1dd1dbb2afb8d9
parent1858c664de64fc8829bf09571aa82f6f4cea49b9
Verifier: Verify that each inlinable callsite of a debug-info-bearing function
in a debug-info-bearing function has a debug location attached to it. Failure to
do so causes an "!dbg attachment points at wrong subprogram for function"
assertion failure when the inliner sets up inline scope info.

rdar://problem/25878916

This reaplies r267320 without changes after fixing an issue in the OpenMP IR
generator in clang.

llvm-svn: 267370
llvm/lib/IR/Verifier.cpp
llvm/test/DebugInfo/X86/arange-and-stub.ll
llvm/test/DebugInfo/X86/dbg-declare-arg.ll
llvm/test/Verifier/callsite-dbgloc.ll [new file with mode: 0644]