Skip to content

Commit 5571687

Browse files
[LoongArch] Fix a warning
This patch fixes: llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp:389:9: error: unused variable 'Layout' [-Werror,-Wunused-variable]
1 parent fdd04e8 commit 5571687

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ bool LoongArchAsmBackend::relaxDwarfCFA(const MCAssembler &Asm,
402402
Layout.getAssembler().getContext().getAsmInfo()->getMinInstAlignment() ==
403403
1 &&
404404
"expected 1-byte alignment");
405+
(void)Layout;
405406
if (Value == 0) {
406407
WasRelaxed = OldSize != Data.size();
407408
return true;

0 commit comments

Comments
 (0)