]> granicus.if.org Git - clang/commit
DebugInfo: Fix cases where location failed to be updated after r225000
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 2 Jan 2015 19:06:25 +0000 (19:06 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 2 Jan 2015 19:06:25 +0000 (19:06 +0000)
commit92866af2f036e861d07be801d9670ad1060aef31
treec743a56b5c6e30e2f5a66f0667ca92c3cede0e55
parentdd03a2db436ea1c99993bada326ee0fe570cf6d8
DebugInfo: Fix cases where location failed to be updated after r225000

The optimization (that appears to have been here since the earliest
implementation (r50848) & has become more complicated over the years) to
avoid recreating the debugloc if it would be the same was out of date
because ApplyDebugLocation was not re-updating the CurLoc/PrevLoc. This
optimization doesn't look terribly beneficial/necessary, so I'm removing
it - if it turns up in benchmarks, I'm happy to reconsider/reimplement
this with justification, but for now it just seems to add
complexity/problems.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225083 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
test/CodeGenCXX/debug-info-line.cpp