[polly] r304146 - [NFC] Fix formatting & typecast issue. Build succeeds.

Siddharth Bhat via llvm-commits llvm-commits at lists.llvm.org
Mon May 29 04:00:31 PDT 2017


Author: bollu
Date: Mon May 29 06:00:31 2017
New Revision: 304146

URL: http://llvm.org/viewvc/llvm-project?rev=304146&view=rev
Log:
[NFC] Fix formatting & typecast issue. Build succeeds.

- Fix formatting in `RegisterPasses.cpp`.
- `assert` tried to compare `isl::boolean` against `long`. Explicitly
construct `bool` from `isl::boolean`. This allows the implicit cast of
`bool` to `long.

Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp
    polly/trunk/lib/Support/RegisterPasses.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=304146&r1=304145&r2=304146&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Mon May 29 06:00:31 2017
@@ -4645,7 +4645,7 @@ ScalarEvolution *Scop::getSE() const { r
 static isl::multi_union_pw_aff mapToDimension(isl::union_set USet, int N) {
   assert(N >= 0);
   assert(USet);
-  assert(!USet.is_empty());
+  assert(!bool(USet.is_empty()));
 
   auto Result = isl::union_pw_multi_aff::empty(USet.get_space());
 

Modified: polly/trunk/lib/Support/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/RegisterPasses.cpp?rev=304146&r1=304145&r2=304146&view=diff
==============================================================================
--- polly/trunk/lib/Support/RegisterPasses.cpp (original)
+++ polly/trunk/lib/Support/RegisterPasses.cpp Mon May 29 06:00:31 2017
@@ -99,7 +99,7 @@ static cl::opt<TargetChoice>
                           ,
                       clEnumValN(TARGET_GPU, "gpu", "generate GPU code")
 #endif
-                          ),
+           ),
            cl::init(TARGET_CPU), cl::ZeroOrMore, cl::cat(PollyCategory));
 
 #ifdef GPU_CODEGEN




More information about the llvm-commits mailing list