]> granicus.if.org Git - clang/commit
Partially revert r204517 and fix a different way:
authorEric Christopher <echristo@gmail.com>
Tue, 1 Apr 2014 22:25:28 +0000 (22:25 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 1 Apr 2014 22:25:28 +0000 (22:25 +0000)
commit059271f62827dfa7bc088f770e53c209015ea7ac
tree2d13c0eecad8c20be58ad1eaf9dd8588efbb8cc9
parentbde32e097ddf8e11f4297369284cf573614ea2fe
Partially revert r204517 and fix a different way:

We don't want to encourage the code to emit a lexical block for
a function that needs one in order for the line table to change,
we need to grab the line information from the body of the pattern
that we were instantiated from, this code should do that.

Modify the test case to ensure that we're still looking in the
right place for all of the scopes and also that we haven't
created a lexical block where we didn't need one.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/linetable-fnbegin.cpp