diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-03-31 08:10:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-31 08:10:34 -0700 |
commit | 74b7abf15452574808834c0a08dd2af6bada2648 (patch) | |
tree | c37e6ec38717b13982df8dc152b1cd1504685921 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 68947342b75cc71f3ac9041d11db086d8d074336 (diff) | |
download | llvm-74b7abf15452574808834c0a08dd2af6bada2648.zip llvm-74b7abf15452574808834c0a08dd2af6bada2648.tar.gz llvm-74b7abf15452574808834c0a08dd2af6bada2648.tar.bz2 |
[IRBuilder] Add new overload for CreateIntrinsic (#131942)
Add a new `CreateIntrinsic` overload with no `Types`, useful for
creating calls to non-overloaded intrinsics that don't need additional
mangling.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index eb07e5d..9d2147f 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -543,7 +543,7 @@ static Value *getStackGuard(const TargetLoweringBase *TLI, Module *M, if (SupportsSelectionDAGSP) *SupportsSelectionDAGSP = true; TLI->insertSSPDeclarations(*M); - return B.CreateIntrinsic(Intrinsic::stackguard, {}, {}); + return B.CreateIntrinsic(Intrinsic::stackguard, {}); } /// Insert code into the entry block that stores the stack guard @@ -564,7 +564,7 @@ static bool CreatePrologue(Function *F, Module *M, Instruction *CheckLoc, AI = B.CreateAlloca(PtrTy, nullptr, "StackGuardSlot"); Value *GuardSlot = getStackGuard(TLI, M, B, &SupportsSelectionDAGSP); - B.CreateIntrinsic(Intrinsic::stackprotector, {}, {GuardSlot, AI}); + B.CreateIntrinsic(Intrinsic::stackprotector, {GuardSlot, AI}); return SupportsSelectionDAGSP; } |