summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-04 20:56:17 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-04 20:56:17 +0000
commit531ba2d1b9b4728ee5a80c475d9617bf45867bab (patch)
tree7c0dbdf6f94511a1fd2fee6b4b3c6e14bb86e439 /lib/CodeGen/CGExpr.cpp
parenta92b40825a9a8345984433093b166d3b08353f8b (diff)
downloadclang-531ba2d1b9b4728ee5a80c475d9617bf45867bab.tar.gz
clang-531ba2d1b9b4728ee5a80c475d9617bf45867bab.tar.bz2
clang-531ba2d1b9b4728ee5a80c475d9617bf45867bab.tar.xz
DebugInfo: PR19298: function local const variables duplicated in the root scope
See the comment for CodeGenFunction::tryEmitAsConstant that describes how in some contexts (lambdas) we must not emit references to the variable, but instead use the constant directly - because of this we end up emitting a constant for the variable, as well as emitting the variable itself. Should we just skip putting the variable on the stack at all and omit the debug info for the constant? It's not clear to me - what if the address of the local is taken? git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions