diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp b/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp index 388071d1e9a..d0067b3302c 100644 --- a/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -1112,7 +1112,7 @@ namespace { else if (isa<ConstantPointerNull>(V)) return ConstantRange(APInt::getNullValue(typeToWidth(V->getType()))); else - return typeToWidth(V->getType()); + return ConstantRange(typeToWidth(V->getType())); } // typeToWidth - returns the number of bits necessary to store a value of |