[WebAssembly][MC] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r369317

llvm-svn: 369318
This commit is contained in:
Fangrui Song 2019-08-20 02:02:57 +00:00
parent ecc5e8084f
commit e828ce1b88
1 changed files with 1 additions and 3 deletions

View File

@ -426,10 +426,8 @@ void WasmObjectWriter::recordRelocation(MCAssembler &Asm,
const MCFragment *Fragment,
const MCFixup &Fixup, MCValue Target,
uint64_t &FixedValue) {
MCAsmBackend &Backend = Asm.getBackend();
// The WebAssembly backend should never generate FKF_IsPCRel fixups
assert(!(Backend.getFixupKindInfo(Fixup.getKind()).Flags &
assert(!(Asm.getBackend().getFixupKindInfo(Fixup.getKind()).Flags &
MCFixupKindInfo::FKF_IsPCRel));
const auto &FixupSection = cast<MCSectionWasm>(*Fragment->getParent());