Commit 1e11bf65 by Jim Stichnoth

Subzero: Fix a warning (promoted to an error) under NOASSERT=1 build.

BUG= none R=kschimpf@google.com Review URL: https://codereview.chromium.org/951283002
parent cb165ca3
...@@ -480,6 +480,7 @@ void InstX8632Jmp::emitIAS(const Cfg *Func) const { ...@@ -480,6 +480,7 @@ void InstX8632Jmp::emitIAS(const Cfg *Func) const {
llvm::report_fatal_error("Assembler can't jmp to memory operand"); llvm::report_fatal_error("Assembler can't jmp to memory operand");
} }
} else if (const auto Mem = llvm::dyn_cast<OperandX8632Mem>(Target)) { } else if (const auto Mem = llvm::dyn_cast<OperandX8632Mem>(Target)) {
(void)Mem;
assert(Mem->getSegmentRegister() == OperandX8632Mem::DefaultSegment); assert(Mem->getSegmentRegister() == OperandX8632Mem::DefaultSegment);
llvm::report_fatal_error("Assembler can't jmp to memory operand"); llvm::report_fatal_error("Assembler can't jmp to memory operand");
} else if (const auto CR = llvm::dyn_cast<ConstantRelocatable>(Target)) { } else if (const auto CR = llvm::dyn_cast<ConstantRelocatable>(Target)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment