Issue |
79737
|
Summary |
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.cpp:406: pointless test ?
|
Labels |
new issue
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.cpp:406:16: style: _expression_ is always true because 'else if' condition is opposite to previous condition at line 402. [multiCondition]
Source code is
else if (Op.isExpr()) {
if (const auto *C = dyn_cast<MCConstantExpr>(Op.getExpr()))
Imm = C->getValue();
} else if (!Op.isExpr()) // Exprs will be replaced with a fixup value.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs