diff options
author | Jay Foad <jay.foad@amd.com> | 2024-10-16 15:43:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 15:43:30 +0100 |
commit | d9c95efb6c102fc9e9c52a558d611bb7aa433dbb (patch) | |
tree | 414fb671e4a1d182232ca484244ce2dbd3658227 /llvm/lib/CodeGen/SafeStack.cpp | |
parent | 383df16317eec3b29b93025e2a86ea024b3f59c7 (diff) | |
download | llvm-d9c95efb6c102fc9e9c52a558d611bb7aa433dbb.zip llvm-d9c95efb6c102fc9e9c52a558d611bb7aa433dbb.tar.gz llvm-d9c95efb6c102fc9e9c52a558d611bb7aa433dbb.tar.bz2 |
[LLVM] Make more use of IRBuilder::CreateIntrinsic. NFC. (#112546)
Convert almost every instance of:
CreateCall(Intrinsic::getOrInsertDeclaration(...), ...)
to the equivalent CreateIntrinsic call.
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SafeStack.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SafeStack.cpp b/llvm/lib/CodeGen/SafeStack.cpp index a50909a..ad2037a 100644 --- a/llvm/lib/CodeGen/SafeStack.cpp +++ b/llvm/lib/CodeGen/SafeStack.cpp @@ -368,8 +368,7 @@ Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { if (!StackGuardVar) { TL.insertSSPDeclarations(*M); - return IRB.CreateCall( - Intrinsic::getOrInsertDeclaration(M, Intrinsic::stackguard)); + return IRB.CreateIntrinsic(Intrinsic::stackguard, {}, {}); } return IRB.CreateLoad(StackPtrTy, StackGuardVar, "StackGuard"); |