Skip to content

Commit df691ca

Browse files
[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]
1 parent b086f75 commit df691ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9855,7 +9855,7 @@ verifyNarrowIntegerArgs_Call(const SmallVectorImpl<ISD::OutputArg> &Outs,
98559855
bool IsInternal = false;
98569856
const Function *CalleeFn = nullptr;
98579857
if (auto *G = dyn_cast<GlobalAddressSDNode>(Callee))
9858-
if (CalleeFn = dyn_cast<Function>(G->getGlobal()))
9858+
if ((CalleeFn = dyn_cast<Function>(G->getGlobal())))
98599859
IsInternal = isFullyInternal(CalleeFn);
98609860
if (!verifyNarrowIntegerArgs(Outs, IsInternal)) {
98619861
errs() << "ERROR: Missing extension attribute of passed "

0 commit comments

Comments
 (0)