[WebAssembly][MC] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after...
authorFangrui Song <maskray@google.com>
Tue, 20 Aug 2019 02:02:57 +0000 (02:02 +0000)
committerFangrui Song <maskray@google.com>
Tue, 20 Aug 2019 02:02:57 +0000 (02:02 +0000)
llvm-svn: 369318

llvm/lib/MC/WasmObjectWriter.cpp

index 89c1d83..cb00241 100644 (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());