[llvm] [AutoUpgrade] Prevent deletion of call if uses still exist (PR #179374)
Kshitij Paranjape via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 3 06:21:18 PST 2026
================
@@ -63,6 +63,14 @@ static cl::opt<bool>
static void rename(GlobalValue *GV) { GV->setName(GV->getName() + ".old"); }
+// Report a fatal error along with the
+// Call Instruction which caused the error
+[[noreturn]] static void reportFatalUsageErrorWithCI(StringRef reason,
+ CallBase *CI) {
+ CI->print(llvm::outs());
----------------
kshitijvp wrote:
Yes there is a new line between printed instruction and the error message.
The instruction cannot be printed after reportFatalUsage() because it terminates the program.
https://github.com/llvm/llvm-project/pull/179374
More information about the llvm-commits
mailing list