projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecc5e80
)
[WebAssembly][MC] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds after...
author
Fangrui Song
<maskray@google.com>
Tue, 20 Aug 2019 02:02:57 +0000
(
02:02
+0000)
committer
Fangrui Song
<maskray@google.com>
Tue, 20 Aug 2019 02:02:57 +0000
(
02:02
+0000)
llvm-svn: 369318
llvm/lib/MC/WasmObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/WasmObjectWriter.cpp
b/llvm/lib/MC/WasmObjectWriter.cpp
index
89c1d83
..
cb00241
100644
(file)
--- 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());