summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-29 01:27:13 +0000
committerDan Gohman <gohman@apple.com>2008-02-29 01:27:13 +0000
commitca24fd909663f3e3f809b2eab463a1a81cef7004 (patch)
treefc62602b8219dd037387454e685d70669bdecfdb /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent35723eb4f6ebbf6d82a8027bd0eb8afc406da654 (diff)
downloadbcm5719-llvm-ca24fd909663f3e3f809b2eab463a1a81cef7004.tar.gz
bcm5719-llvm-ca24fd909663f3e3f809b2eab463a1a81cef7004.zip
Simplify code using convertFromZeroExtendedInteger with an APInt
by using the new convertFromAPInt directly. llvm-svn: 47739
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 5e883917129..8796a2d2e6c 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -424,9 +424,9 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
else if (CE->getType() == Type::X86_FP80Ty) {
const uint64_t zero[] = {0, 0};
APFloat apf = APFloat(APInt(80, 2, zero));
- (void)apf.convertFromZeroExtendedInteger(GV.IntVal.getRawData(),
- GV.IntVal.getBitWidth(), false,
- APFloat::rmNearestTiesToEven);
+ (void)apf.convertFromAPInt(GV.IntVal,
+ false,
+ APFloat::rmNearestTiesToEven);
GV.IntVal = apf.convertToAPInt();
}
return GV;
@@ -440,9 +440,9 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
else if (CE->getType() == Type::X86_FP80Ty) {
const uint64_t zero[] = { 0, 0};
APFloat apf = APFloat(APInt(80, 2, zero));
- (void)apf.convertFromZeroExtendedInteger(GV.IntVal.getRawData(),
- GV.IntVal.getBitWidth(), true,
- APFloat::rmNearestTiesToEven);
+ (void)apf.convertFromAPInt(GV.IntVal,
+ true,
+ APFloat::rmNearestTiesToEven);
GV.IntVal = apf.convertToAPInt();
}
return GV;
OpenPOWER on IntegriCloud