[all-commits] [llvm/llvm-project] 4914c9: [SantizerCoverage] handle missing DBG MD when inse...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Mon Apr 12 16:06:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4914c9836765532ffaec9c85bc57690dbdaeb50f
https://github.com/llvm/llvm-project/commit/4914c9836765532ffaec9c85bc57690dbdaeb50f
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2021-04-12 (Mon, 12 Apr 2021)
Changed paths:
M llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
A llvm/test/Instrumentation/SanitizerCoverage/crit-edge-sancov.ll
Log Message:
-----------
[SantizerCoverage] handle missing DBG MD when inserting libcalls
Instruction::getDebugLoc can return an invalid DebugLoc. For such cases
where metadata was accidentally removed from the libcall insertion
point, simply insert a DILocation with line 0 scoped to the caller. When
we can inline the libcall, such as during LTO, then we won't fail a
Verifier check that all calls to functions with debug metadata
themselves must have debug metadata.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D100158
More information about the All-commits
mailing list