[llvm] df691ca - [SystemZ] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 09:12:31 PDT 2024
Author: Kazu Hirata
Date: 2024-09-30T09:12:23-07:00
New Revision: df691ca74bac52e0ec983817da8a6b4ae13f4f42
URL: https://github.com/llvm/llvm-project/commit/df691ca74bac52e0ec983817da8a6b4ae13f4f42
DIFF: https://github.com/llvm/llvm-project/commit/df691ca74bac52e0ec983817da8a6b4ae13f4f42.diff
LOG: [SystemZ] Fix a warning
This patch fixes:
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp:9858:18: error:
using the result of an assignment as a condition without parentheses
[-Werror,-Wparentheses]
Added:
Modified:
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index 43483ccada366a..abf414fd1ffb71 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -9855,7 +9855,7 @@ verifyNarrowIntegerArgs_Call(const SmallVectorImpl<ISD::OutputArg> &Outs,
bool IsInternal = false;
const Function *CalleeFn = nullptr;
if (auto *G = dyn_cast<GlobalAddressSDNode>(Callee))
- if (CalleeFn = dyn_cast<Function>(G->getGlobal()))
+ if ((CalleeFn = dyn_cast<Function>(G->getGlobal())))
IsInternal = isFullyInternal(CalleeFn);
if (!verifyNarrowIntegerArgs(Outs, IsInternal)) {
errs() << "ERROR: Missing extension attribute of passed "
More information about the llvm-commits
mailing list