summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-04-28 00:42:03 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-04-28 00:42:03 +0000
commit33c133919ac5e1d34179eb9a9b3ec5fd3c51f251 (patch)
treec15686e3987e1d2b2267736e3d3c3ab88ce1bba0 /llvm/lib/CodeGen
parent7e92e57b0b9d9af7a24b4877b9959017deaf322b (diff)
downloadbcm5719-llvm-33c133919ac5e1d34179eb9a9b3ec5fd3c51f251.tar.gz
bcm5719-llvm-33c133919ac5e1d34179eb9a9b3ec5fd3c51f251.zip
Fix a silly mistake in r130338.
llvm-svn: 130360
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 211c76b2f30..63e869960bf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -164,7 +164,7 @@ unsigned FastISel::materializeRegForValue(const Value *V, MVT VT) {
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.
OpenPOWER on IntegriCloud