summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-04-24 22:45:46 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-04-24 22:45:46 +0000
commit0ba2e26a594f6a420b6daf7e371b8c1579968f52 (patch)
tree4c895e95909b6b1fef9adb21416ef615519d7670 /lib/CodeGen/CodeGenFunction.cpp
parent57218ee935e495ef17164e7f6580777e1a376430 (diff)
downloadclang-0ba2e26a594f6a420b6daf7e371b8c1579968f52.tar.gz
clang-0ba2e26a594f6a420b6daf7e371b8c1579968f52.tar.bz2
clang-0ba2e26a594f6a420b6daf7e371b8c1579968f52.tar.xz
If we see an explicit instantiation declaration or definition of a function
after we've already instantiated a definition for the function, pass it to the ASTConsumer again so that it knows the specialization kind has changed and can update the function's linkage. This only matters if we instantiate the definition of the function before we reach the end of the TU; this can happen in at least three different ways: C++11 constexpr functions, C++14 deduced return types, and functions instantiated within modules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions