diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h index 2af6d8972349..3817e419ad7a 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolution.h +++ b/llvm/include/llvm/Analysis/ScalarEvolution.h @@ -545,7 +545,7 @@ namespace llvm { /// forgetMemoizedResults - Drop memoized information computed for S. void forgetMemoizedResults(const SCEV *S); - /// return false iff given SCEV contains a SCEVUnknown with NULL value- + /// Return false iff given SCEV contains a SCEVUnknown with NULL value- /// pointer. bool checkValidity(const SCEV *S) const; diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 69beaafbe0f3..85290d6e1b88 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -2728,7 +2728,7 @@ namespace { case scConstant: return false; case scUnknown: - if(!cast(S)->getValue()) + if (!cast(S)->getValue()) FindOne = true; return false; default: @@ -2755,7 +2755,7 @@ const SCEV *ScalarEvolution::getSCEV(Value *V) { ValueExprMapType::iterator I = ValueExprMap.find_as(V); if (I != ValueExprMap.end()) { const SCEV *S = I->second; - if(checkValidity(S)) + if (checkValidity(S)) return S; else ValueExprMap.erase(I);