summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-05-12 23:17:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-05-12 23:17:59 +0000
commitd248e586d60a3fe971369089e763d5e8f669b7a9 (patch)
treec68b94aec040d6a7b4c108a467014e8f236f2312 /lib/CodeGen/CodeGenFunction.cpp
parent87360f2acd4e2fa706707135b95c64e5e2b63435 (diff)
downloadclang-d248e586d60a3fe971369089e763d5e8f669b7a9.tar.gz
clang-d248e586d60a3fe971369089e763d5e8f669b7a9.tar.bz2
clang-d248e586d60a3fe971369089e763d5e8f669b7a9.tar.xz
Fix stack overflow in linkage computation when a function with a deduced return
type returns a lambda defined within itself. The computation of linkage for the function looked at the linkage of the lambda, and vice versa. This is solved by not checking whether an 'auto' in a function return type deduces to a type with unique external linkage. We don't need this check, because the type deduced for 'auto' doesn't affect whether two otherwise-identical declarations would name different functions, so we don't need to give an ostensibly external-linkage function internal linkage for this reason. (We also don't need unique-external linkage in C++11 onwards at all, but that's not implemented yet.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions