summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-05-02 17:30:20 +0000
committerAdrian Prantl <aprantl@apple.com>2013-05-02 17:30:20 +0000
commit3be10542af5764237c574bcedbb923e14deda478 (patch)
tree39efc3092ea8d5f2837c0ba19738413e60a9d757 /clang/lib/CodeGen/CodeGenModule.cpp
parentf1b28a5dbc127bdd89742cc5aa58f3703cd97469 (diff)
downloadbcm5719-llvm-3be10542af5764237c574bcedbb923e14deda478.tar.gz
bcm5719-llvm-3be10542af5764237c574bcedbb923e14deda478.zip
Ensure that the line table for functions with cleanups is sequential.
If there is cleanup code, the cleanup code gets the debug location of the closing '}'. The subsequent ret IR-instruction does not get a debug location. The return _expression_ will get the debug location of the return statement. If the function contains only a single, simple return statement, the cleanup code may become the first breakpoint in the function. In this case we set the debug location for the cleanup code to the location of the return statement. rdar://problem/13442648 llvm-svn: 180932
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud