forked from OSchip/llvm-project
[Hexagon] cast<> a reference instead of referencing + dereferencing.
llvm-svn: 261077
This commit is contained in:
parent
ffed72bbeb
commit
98520ca73b
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue