mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
fix an -Wunused-variable warning in release built, NFC
This commit is contained in:
parent
25656e8196
commit
e76e730b8f
@ -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
Block a user