Skip to content

Commit

Permalink
[BOLT] Fix no-assertions build
Browse files Browse the repository at this point in the history
Summary:
In release build without assertions MCInst::dump() is undefined and
causes link time failure.

Fixes facebookarchive/BOLT#27.

(cherry picked from FBD8732905)
  • Loading branch information
maksfb committed Jul 4, 2018
1 parent a6a3799 commit 365613b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bolt/src/Target/AArch64/AArch64MCPlusBuilder.cpp
Expand Up @@ -691,7 +691,7 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
Inst.getOperand(0).getImm() != AArch64CC::NV &&
"Can't reverse ALWAYS cond code");
} else {
Inst.dump();
DEBUG(Inst.dump());
llvm_unreachable("Unrecognized branch instruction");
}
return replaceBranchTarget(Inst, TBB, Ctx);
Expand Down

0 comments on commit 365613b

Please sign in to comment.