aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse.llvm@gmail.com>2018-11-28 17:58:45 +0000
committerJeremy Morse <jeremy.morse.llvm@gmail.com>2018-11-28 17:58:45 +0000
commit9b4cfa55b1b86e35b5ace5061606753d7060f1a7 (patch)
treee458ef594a9be9d18e6fff7488a7e9456ee0181d /clang/lib/CodeGen/CodeGenModule.cpp
parent63d397ea6ec4eb239374af152f97ed1f053d22af (diff)
downloadllvm-9b4cfa55b1b86e35b5ace5061606753d7060f1a7.zip
llvm-9b4cfa55b1b86e35b5ace5061606753d7060f1a7.tar.gz
llvm-9b4cfa55b1b86e35b5ace5061606753d7060f1a7.tar.bz2
[DebugInfo] Give inlinable calls DILocs (PR39807)
In PR39807 we incorrectly handle circumstances where calls are common'd from conditional blocks into the parent BB. Calls that can be inlined must always have DebugLocs, however we strip them during commoning, which the IR verifier asserts on. Fix this by using applyMergedLocation: it will perform the same DebugLoc stripping of conditional Locs, but will also generate an unknown location DebugLoc that satisfies the requirement for inlinable calls to always have locations. Some of the prior logic for selecting a DebugLoc is now likely redundant; I'll generate a follow-up to remove it (involves editing more regression tests). Differential Revision: https://reviews.llvm.org/D54997 llvm-svn: 347782
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions