diff --git a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp index dc1af1bbb1d16..af8232b03f1ed 100644 --- a/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp @@ -55,10 +55,10 @@ AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, if (canComputePointerDiff(SE, AS, BS)) { unsigned BitWidth = SE.getTypeSizeInBits(AS->getType()); APInt ASizeInt(BitWidth, LocA.Size.hasValue() - ? LocA.Size.getValue() + ? static_cast(LocA.Size.getValue()) : MemoryLocation::UnknownSize); APInt BSizeInt(BitWidth, LocB.Size.hasValue() - ? LocB.Size.getValue() + ? static_cast(LocB.Size.getValue()) : MemoryLocation::UnknownSize); // Compute the difference between the two pointers.