aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFold.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-10-09 18:53:47 +0000
committerDale Johannesen <dalej@apple.com>2008-10-09 18:53:47 +0000
commit7111b02c734c992b8c97d9918118768026dad79e (patch)
treec6a444a3819e1ae62e870dd0040a8cd4f699d778 /lib/VMCore/ConstantFold.cpp
parenta6bf66d0d6c1ed9bb657f72bc89c432c4ee96f63 (diff)
downloadexternal_llvm-7111b02c734c992b8c97d9918118768026dad79e.zip
external_llvm-7111b02c734c992b8c97d9918118768026dad79e.tar.gz
external_llvm-7111b02c734c992b8c97d9918118768026dad79e.tar.bz2
Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r--lib/VMCore/ConstantFold.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp
index 93cfccf..9256109 100644
--- a/lib/VMCore/ConstantFold.cpp
+++ b/lib/VMCore/ConstantFold.cpp
@@ -160,10 +160,10 @@ static Constant *FoldBitCast(Constant *V, const Type *DestTy) {
if (const ConstantFP *FP = dyn_cast<ConstantFP>(V)) {
// FP -> Integral.
if (DestTy == Type::Int32Ty) {
- return ConstantInt::get(FP->getValueAPF().convertToAPInt());
+ return ConstantInt::get(FP->getValueAPF().bitcastToAPInt());
} else {
assert(DestTy == Type::Int64Ty && "only support f32/f64 for now!");
- return ConstantInt::get(FP->getValueAPF().convertToAPInt());
+ return ConstantInt::get(FP->getValueAPF().bitcastToAPInt());
}
}
return 0;