[llvm] [win][arm64ec] Fix duplicate errors with the dontcall attribute (PR #152810)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 9 03:32:49 PDT 2025


================
@@ -1148,9 +1148,11 @@ bool FastISel::lowerCall(const CallInst *CI) {
   CLI.setCallee(RetTy, FuncTy, CI->getCalledOperand(), std::move(Args), *CI)
       .setTailCall(IsTailCall);
 
-  diagnoseDontCall(*CI);
-
-  return lowerCallTo(CLI);
+  if (lowerCallTo(CLI)) {
+    diagnoseDontCall(*CI);
+    return true;
+  } else
+    return false;
----------------
arsenm wrote:

```suggestion
  }
  
  return false;
```

No else after return 

https://github.com/llvm/llvm-project/pull/152810


More information about the llvm-commits mailing list