diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Float2Int.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Float2Int.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/Float2Int.cpp b/llvm/lib/Transforms/Scalar/Float2Int.cpp index 8a5d4f568774..a98bb8358aef 100644 --- a/llvm/lib/Transforms/Scalar/Float2Int.cpp +++ b/llvm/lib/Transforms/Scalar/Float2Int.cpp @@ -256,7 +256,7 @@ void Float2IntPass::walkForwards() { Op = [](ArrayRef<ConstantRange> Ops) { assert(Ops.size() == 1 && "FNeg is a unary operator!"); unsigned Size = Ops[0].getBitWidth(); - auto Zero = ConstantRange(APInt::getNullValue(Size)); + auto Zero = ConstantRange(APInt::getZero(Size)); return Zero.sub(Ops[0]); }; break; @@ -372,7 +372,7 @@ bool Float2IntPass::validateAndTransform() { // If it does, transformation would be illegal. // // Don't count the roots, as they terminate the graphs. - if (Roots.count(I) == 0) { + if (!Roots.contains(I)) { // Set the type of the conversion while we're here. if (!ConvertedToTy) ConvertedToTy = I->getType(); |
