diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-23 06:41:11 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-23 06:41:11 +0000 |
commit | 474e5de72de95414c883fc2759f8a75b20ee42be (patch) | |
tree | f13d33b65158e97a5fc761ac17773af01ee740cd /llvm/lib/Target | |
parent | cdd5ae6676aac86531d0b5fed97f57727d094bc5 (diff) | |
download | bcm5719-llvm-474e5de72de95414c883fc2759f8a75b20ee42be.tar.gz bcm5719-llvm-474e5de72de95414c883fc2759f8a75b20ee42be.zip |
[APInt] Fix a few places that use APInt::getRawData to operate within the normal API.
getRawData exposes the internal type of the APInt class directly to its users. Ideally we wouldn't expose such an implementation detail.
This patch fixes a few of the easy cases by using truncate, extract, or a rotate.
llvm-svn: 301105
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonMCInstLower.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonMCInstLower.cpp b/llvm/lib/Target/Hexagon/HexagonMCInstLower.cpp index 7189b5a52c4..39f43988b19 100644 --- a/llvm/lib/Target/Hexagon/HexagonMCInstLower.cpp +++ b/llvm/lib/Target/Hexagon/HexagonMCInstLower.cpp @@ -124,7 +124,7 @@ void llvm::HexagonLowerToMC(const MCInstrInfo &MCII, const MachineInstr *MI, // FP immediates are used only when setting GPRs, so they may be dealt // with like regular immediates from this point on. auto Expr = HexagonMCExpr::create( - MCConstantExpr::create(*Val.bitcastToAPInt().getRawData(), + MCConstantExpr::create(Val.bitcastToAPInt().getZExtValue(), AP.OutContext), AP.OutContext); HexagonMCInstrInfo::setMustExtend(*Expr, MustExtend); |