[Refactor][NfC] ReportLevel should be used as a bool not an int
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>
Wed, 15 Oct 2014 23:24:28 +0000 (23:24 +0000)
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>
Wed, 15 Oct 2014 23:24:28 +0000 (23:24 +0000)
llvm-svn: 219864

polly/lib/Analysis/ScopDetection.cpp

index 8b1c68c..de74f82 100644 (file)
@@ -934,7 +934,7 @@ bool ScopDetection::runOnFunction(llvm::Function &F) {
   for (const Region *R : ValidRegions)
     emitValidRemarks(F, R);
 
-  if (ReportLevel >= 1)
+  if (ReportLevel)
     printLocations(F);
 
   return false;