aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-06-30 04:41:18 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-06-30 04:41:18 +0000
commit64b0bdf88afd11b4693b1553c8f5e13c1cb581ed (patch)
tree7e67742d24372db0f623c68ade4330156c1e6ea4 /clang/lib/CodeGen/ModuleBuilder.cpp
parent41bb43252b18f9687990b2dd5c53c8270c785a62 (diff)
downloadllvm-64b0bdf88afd11b4693b1553c8f5e13c1cb581ed.zip
llvm-64b0bdf88afd11b4693b1553c8f5e13c1cb581ed.tar.gz
llvm-64b0bdf88afd11b4693b1553c8f5e13c1cb581ed.tar.bz2
[CodeGen] Tweak isTriviallyRecursive further
isTriviallyRecursive is a hack used to bridge a gap between the expectations that source code assumes and the semantics that LLVM IR can provide. Specifically, asm labels on functions are treated as an explicit name for a GlobalObject in Clang but treated like an output-processing step in GCC. Tweak this hack a little further to emit calls to library functions instead of emitting an incorrect definition. The definition in question would have available_externally linkage (this is OK) but result in a call to itself which will either result in an infinite loop or stack overflow. This fixes PR23964. llvm-svn: 241043
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions