Skip to content

Commit b14954e

Browse files
committed
address comment
1 parent 6ee3b7a commit b14954e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,7 @@ void LoongArchMCCodeEmitter::expandAddTPRel(const MCInst &MI,
394394
MI.getLoc()));
395395

396396
// Emit R_LARCH_RELAX for %le_add_r when the relax feature is enabled.
397-
bool EnableRelax = STI.hasFeature(LoongArch::FeatureRelax);
398-
if (EnableRelax) {
397+
if (STI.hasFeature(LoongArch::FeatureRelax)) {
399398
const MCConstantExpr *Dummy = MCConstantExpr::create(0, Ctx);
400399
Fixups.push_back(MCFixup::create(
401400
0, Dummy, MCFixupKind(LoongArch::fixup_loongarch_relax), MI.getLoc()));

0 commit comments

Comments
 (0)