OSDN Git Service

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)
commitc5cc3f2a20591c1978136310e453d8f801563900
treec5a92498f27627f44dbfae4f862faf79ebb05f9e
parent4c6a7658fc3385a12f269de9e50346cbc1b586d1
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267370 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Verifier.cpp
test/DebugInfo/X86/arange-and-stub.ll
test/DebugInfo/X86/dbg-declare-arg.ll
test/Verifier/callsite-dbgloc.ll [new file with mode: 0644]