[llvm] [AutoUpgrade] Prevent deletion of call if uses still exist (PR #179374)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 3 05:41:30 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());
----------------
nikic wrote:
Also this should be `errs()`.
https://github.com/llvm/llvm-project/pull/179374
More information about the llvm-commits
mailing list