commit | bd1253809bc1b2455793a64d2801db3d6317b08e | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu Apr 28 00:42:03 2011 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu Apr 28 00:42:03 2011 +0000 |
tree | 140e12e511faf99a8016a8a74f33a41249486b64 | |
parent | 2d525c553269b81182d69b93de0395b1d9746264 [diff] [blame] |
Fix a silly mistake in r130338. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130360 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 211c76b..63e8699 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -164,7 +164,7 @@ Reg = getRegForValue(Constant::getNullValue(TD.getIntPtrType(V->getContext()))); } else if (const ConstantFP *CF = dyn_cast<ConstantFP>(V)) { - if (CF->isZero()) { + if (CF->isNullValue()) { Reg = TargetMaterializeFloatZero(CF); } else { // Try to emit the constant directly.