[polly] r219864 - [Refactor][NfC] ReportLevel should be used as a bool not an int

Johannes Doerfert doerfert at cs.uni-saarland.de
Wed Oct 15 16:24:28 PDT 2014


Author: jdoerfert
Date: Wed Oct 15 18:24:28 2014
New Revision: 219864

URL: http://llvm.org/viewvc/llvm-project?rev=219864&view=rev
Log:
[Refactor][NfC] ReportLevel should be used as a bool not an int

Modified:
    polly/trunk/lib/Analysis/ScopDetection.cpp

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=219864&r1=219863&r2=219864&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Wed Oct 15 18:24:28 2014
@@ -934,7 +934,7 @@ bool ScopDetection::runOnFunction(llvm::
   for (const Region *R : ValidRegions)
     emitValidRemarks(F, R);
 
-  if (ReportLevel >= 1)
+  if (ReportLevel)
     printLocations(F);
 
   return false;





More information about the llvm-commits mailing list