[Hexagon] cast<> a reference instead of referencing + dereferencing.

llvm-svn: 261077
This commit is contained in:
Benjamin Kramer 2016-02-17 09:28:45 +00:00
parent ffed72bbeb
commit 98520ca73b
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ MCInstrDesc const &HexagonMCInstrInfo::getDesc(MCInstrInfo const &MCII,
}
MCExpr const &HexagonMCInstrInfo::getExpr(MCExpr const &Expr) {
HexagonMCExpr const &HExpr = *llvm::cast<HexagonMCExpr>(&Expr);
const auto &HExpr = cast<HexagonMCExpr>(Expr);
assert(HExpr.getExpr());
return *HExpr.getExpr();
}