]> granicus.if.org Git - clang/commit
CodeGen: simplify the CC handling for TLS wrappers
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 1 Aug 2016 21:31:24 +0000 (21:31 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 1 Aug 2016 21:31:24 +0000 (21:31 +0000)
commit56057abaa37e14ff41af046d6b684f295956e154
tree08e6467b999128a473abd65d8ba7c93be0b8946f
parent033d0b704e48808fa7453d324625da9df1800eeb
CodeGen: simplify the CC handling for TLS wrappers

Use the calling convention of the wrapper directly to set the calling convention
to ensure that the calling convention matches.  Incorrectly setting the calling
convention results in the code path being entirely nullified as InstCombine +
SimplifyCFG will prune the mismatched CC calls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277390 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGen/windows-on-arm-itanium-thread-local.c [new file with mode: 0644]