summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WasmObjectWriter.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-08-20 02:02:57 +0000
committerFangrui Song <maskray@google.com>2019-08-20 02:02:57 +0000
commite828ce1b8887aa20e9aa2bc7fbcbfa0a4eeff567 (patch)
tree7c2fa3464af9c09462e4430aa921f87c6de55e7d /llvm/lib/MC/WasmObjectWriter.cpp
parentecc5e8084f500958f3c84335b214b3964356bc15 (diff)
downloadbcm5719-llvm-e828ce1b8887aa20e9aa2bc7fbcbfa0a4eeff567.tar.gz
bcm5719-llvm-e828ce1b8887aa20e9aa2bc7fbcbfa0a4eeff567.zip
[WebAssembly][MC] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after r369317
llvm-svn: 369318
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WasmObjectWriter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp
index 89c1d83f5c6..cb00241715a 100644
--- a/llvm/lib/MC/WasmObjectWriter.cpp
+++ b/llvm/lib/MC/WasmObjectWriter.cpp
@@ -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());
OpenPOWER on IntegriCloud