[PATCH] D141740: [IRLinker] Replace CallInstr with CallBase

Gulfem Savrun Yeniceri via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 17:08:00 PST 2023


gulfem created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
gulfem requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch replaces CallInstr with CallBase to cover
InvokeInstr as well while removing nocallback attribute.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141740

Files:
  llvm/lib/Linker/IRMover.cpp


Index: llvm/lib/Linker/IRMover.cpp
===================================================================
--- llvm/lib/Linker/IRMover.cpp
+++ llvm/lib/Linker/IRMover.cpp
@@ -1555,7 +1555,7 @@
     // Remove nocallback attribute when it is on a call-site.
     for (BasicBlock &BB : *F)
       for (Instruction &I : BB)
-        if (CallInst *CI = dyn_cast<CallInst>(&I))
+        if (CallBase *CI = dyn_cast<CallBase>(&I))
           CI->removeFnAttr(Attribute::NoCallback);
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141740.489158.patch
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230114/d0d90ebd/attachment.bin>


More information about the llvm-commits mailing list