summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorColin LeMahieu <colinl@codeaurora.org>2016-02-17 18:50:21 +0000
committerColin LeMahieu <colinl@codeaurora.org>2016-02-17 18:50:21 +0000
commit5e552d141ffadadf34b085b9971f6d137d93f12f (patch)
tree55fdb317c5a3893d0fdebdbe21dd1ada8d723cec /llvm/lib
parent32ac273a9164087f7d9218fc2dcb1e9246e85788 (diff)
downloadbcm5719-llvm-5e552d141ffadadf34b085b9971f6d137d93f12f.tar.gz
bcm5719-llvm-5e552d141ffadadf34b085b9971f6d137d93f12f.zip
[Hexagon] Replacing reference/dereference with reference cast.
llvm-svn: 261133
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp
index b6912d186ca..8444b430011 100644
--- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp
+++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp
@@ -586,21 +586,21 @@ int64_t HexagonMCInstrInfo::minConstant(MCInst const &MCI, size_t Index) {
}
void HexagonMCInstrInfo::setMustExtend(MCExpr &Expr, bool Val) {
- HexagonMCExpr &HExpr = *llvm::cast<HexagonMCExpr>(&Expr);
+ HexagonMCExpr &HExpr = cast<HexagonMCExpr>(Expr);
HExpr.setMustExtend(Val);
}
bool HexagonMCInstrInfo::mustExtend(MCExpr const &Expr) {
- HexagonMCExpr const &HExpr = *llvm::cast<HexagonMCExpr>(&Expr);
+ HexagonMCExpr const &HExpr = cast<HexagonMCExpr>(Expr);
return HExpr.mustExtend();
}
void HexagonMCInstrInfo::setMustNotExtend(MCExpr const &Expr, bool Val) {
HexagonMCExpr &HExpr =
- const_cast<HexagonMCExpr &>(*llvm::cast<HexagonMCExpr>(&Expr));
+ const_cast<HexagonMCExpr &>(cast<HexagonMCExpr>(Expr));
HExpr.setMustNotExtend(Val);
}
bool HexagonMCInstrInfo::mustNotExtend(MCExpr const &Expr) {
- HexagonMCExpr const &HExpr = *llvm::cast<HexagonMCExpr>(&Expr);
+ HexagonMCExpr const &HExpr = cast<HexagonMCExpr>(Expr);
return HExpr.mustNotExtend();
}
OpenPOWER on IntegriCloud