LLVM/project 1f7f268 — llvm/lib/CodeGen StackProtector.cpp, llvm/test/CodeGen/X86 tailcc-ssp.ll
StackProtector: use isInTailCallPosition to verify tail call position (#68997) The issue is caused by [D133860](https://reviews.llvm.org/D133860). The guard would be inserted in wrong place in some cases, like the test case showed below. This patch fixed the issue by using `isInTailCallPosition()` to verify whether the tail call is in right position.
Delta | File | |
---|---|---|
+21 | -0 | llvm/test/CodeGen/X86/tailcc-ssp.ll |
+4 | -10 | llvm/lib/CodeGen/StackProtector.cpp |
+25 | -10 | 2 files |