forked from OSchip/llvm-project
fix an -Wunused-variable warning in release built, NFC
This commit is contained in:
parent
61196f855c
commit
53f5f14136
|
@ -275,7 +275,6 @@ bool RISCVAsmBackend::relaxDwarfLineAddr(MCDwarfLineAddrFragment &DF,
|
|||
bool RISCVAsmBackend::relaxDwarfCFA(MCDwarfCallFrameFragment &DF,
|
||||
MCAsmLayout &Layout,
|
||||
bool &WasRelaxed) const {
|
||||
MCContext &C = Layout.getAssembler().getContext();
|
||||
|
||||
const MCExpr &AddrDelta = DF.getAddrDelta();
|
||||
SmallVectorImpl<char> &Data = DF.getContents();
|
||||
|
@ -291,8 +290,10 @@ bool RISCVAsmBackend::relaxDwarfCFA(MCDwarfCallFrameFragment &DF,
|
|||
Fixups.clear();
|
||||
raw_svector_ostream OS(Data);
|
||||
|
||||
assert(C.getAsmInfo()->getMinInstAlignment() == 1 &&
|
||||
"expected 1-byte alignment");
|
||||
assert(
|
||||
Layout.getAssembler().getContext().getAsmInfo()->getMinInstAlignment() ==
|
||||
1 &&
|
||||
"expected 1-byte alignment");
|
||||
if (Value == 0) {
|
||||
WasRelaxed = OldSize != Data.size();
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue