diff options
author | Tim Northover <tnorthover@apple.com> | 2016-12-05 21:54:17 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-12-05 21:54:17 +0000 |
commit | cc35f904927e237a3a1c3239b4f27584382bec5c (patch) | |
tree | 2af2999ea00581fff88a265d66808a91ac013d84 /llvm/lib/CodeGen/GlobalISel | |
parent | 9267ac5d4735ef910a3c7e26bc961cac4a0dc115 (diff) | |
download | bcm5719-llvm-cc35f904927e237a3a1c3239b4f27584382bec5c.tar.gz bcm5719-llvm-cc35f904927e237a3a1c3239b4f27584382bec5c.zip |
GlobalISel: translate constants larger than 64 bits.
llvm-svn: 288713
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index b84bd646c78..1c0020ee693 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -697,7 +697,7 @@ bool IRTranslator::translate(const Instruction &Inst) { bool IRTranslator::translate(const Constant &C, unsigned Reg) { if (auto CI = dyn_cast<ConstantInt>(&C)) - EntryBuilder.buildConstant(Reg, CI->getZExtValue()); + EntryBuilder.buildConstant(Reg, *CI); else if (auto CF = dyn_cast<ConstantFP>(&C)) EntryBuilder.buildFConstant(Reg, *CF); else if (isa<UndefValue>(C)) |