diff options
author | Jay Foad <jay.foad@gmail.com> | 2010-11-28 21:04:48 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2010-11-28 21:04:48 +0000 |
commit | 3447fb01c0bdb1dce159681cc81c1f8a891cb0a2 (patch) | |
tree | 3dbfec25d76aefef156227f5c7b4a448f58c8b33 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 7e8a99b1c3ed6dfb607400348bf9d5d70fba8f27 (diff) | |
download | bcm5719-llvm-3447fb01c0bdb1dce159681cc81c1f8a891cb0a2.tar.gz bcm5719-llvm-3447fb01c0bdb1dce159681cc81c1f8a891cb0a2.zip |
PR5207: change APInt::doubleToBits() and APInt::floatToBits() to be
static methods that return a new APInt.
llvm-svn: 120261
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 91d68fb1e25..1f5711c4e4e 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -637,11 +637,11 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { break; case Type::FloatTyID: assert(DestTy->isIntegerTy(32) && "Invalid bitcast"); - GV.IntVal.floatToBits(GV.FloatVal); + GV.IntVal = APInt::floatToBits(GV.FloatVal); break; case Type::DoubleTyID: assert(DestTy->isIntegerTy(64) && "Invalid bitcast"); - GV.IntVal.doubleToBits(GV.DoubleVal); + GV.IntVal = APInt::doubleToBits(GV.DoubleVal); break; case Type::PointerTyID: assert(DestTy->isPointerTy() && "Invalid bitcast"); |