aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDario Domizioli <dario.domizioli@gmail.com>2014-11-11 18:44:49 +0000
committerDario Domizioli <dario.domizioli@gmail.com>2014-11-11 18:44:49 +0000
commite904e85faf52e179eea69043c3a150700f8bd040 (patch)
tree1f02a8826581933d27ef7bb0a65b538a4b27cd1a /clang/lib/CodeGen/CodeGenModule.cpp
parent590e943a818dc372c966ffec25c919382d741b76 (diff)
downloadllvm-e904e85faf52e179eea69043c3a150700f8bd040.zip
llvm-e904e85faf52e179eea69043c3a150700f8bd040.tar.gz
llvm-e904e85faf52e179eea69043c3a150700f8bd040.tar.bz2
[X86][ELF] Fix PR20243 - leaf frame pointer bug with TLS access
The ISel lowering for global TLS access in PIC mode was creating a pseudo instruction that is later expanded to a call, but the code was not setting the hasCalls flag in the MachineFrameInfo alongside the adjustsStack flag. This caused some functions to be mistakenly recognized as leaf functions, and this in turn affected the decision to eliminate the frame pointer. With the fix, hasCalls is properly set and the leaf frame pointer is correctly preserved. llvm-svn: 221695
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions