aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin.dev@gmail.com>2016-08-29 11:48:50 +0000
committerIgor Kudrin <ikudrin.dev@gmail.com>2016-08-29 11:48:50 +0000
commit8545dae226162723ee75867288103a9a71d0b91c (patch)
tree4aa01c97f8b06117649d157cfb441a2b1efddd9e /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent24281b4740799108fe935e3478dfbe3f27c2d36c (diff)
downloadllvm-8545dae226162723ee75867288103a9a71d0b91c.zip
llvm-8545dae226162723ee75867288103a9a71d0b91c.tar.gz
llvm-8545dae226162723ee75867288103a9a71d0b91c.tar.bz2
[Coverage] Prevent creating a redundant counter if a nested body ends with a macro.
If there were several nested statements arranged in a way that all of them end up with the same macro, then the expansion of this macro was assigned with all the corresponding counters of these statements. As a result, the wrong counter value was shown for the macro in llvm-cov. This patch fixes the issue by preventing adding a counter for an expanded source range if it already has an assigned counter, which is expected to come from the most specific statement. Differential Revision: https://reviews.llvm.org/D23160 llvm-svn: 279962
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions