File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/lib/Target/RISCV/AsmParser Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -882,8 +882,7 @@ struct RISCVOperand final : public MCParsedAsmOperand {
882882 bool IsConstantImm = evaluateConstantImm (getImm (), Imm);
883883 if (IsConstantImm)
884884 return isUInt<20 >(Imm);
885- bool IsValid = RISCVAsmParser::classifySymbolRef (getImm (), VK);
886- return IsValid &&
885+ return RISCVAsmParser::classifySymbolRef (getImm (), VK) &&
887886 (VK == RISCVMCExpr::VK_HI || VK == RISCVMCExpr::VK_TPREL_HI);
888887 }
889888
@@ -896,8 +895,7 @@ struct RISCVOperand final : public MCParsedAsmOperand {
896895 if (IsConstantImm)
897896 return isUInt<20 >(Imm);
898897
899- bool IsValid = RISCVAsmParser::classifySymbolRef (getImm (), VK);
900- return IsValid &&
898+ return RISCVAsmParser::classifySymbolRef (getImm (), VK) &&
901899 (VK == RISCVMCExpr::VK_PCREL_HI || VK == RISCVMCExpr::VK_GOT_HI ||
902900 VK == RISCVMCExpr::VK_TLS_GOT_HI ||
903901 VK == RISCVMCExpr::VK_TLS_GD_HI ||
You can’t perform that action at this time.
0 commit comments