[Polly] Fix build after AssumptionCache change (D96168)
authorFangrui Song <i@maskray.me>
Sat, 6 Feb 2021 19:56:15 +0000 (11:56 -0800)
committerFangrui Song <i@maskray.me>
Sat, 6 Feb 2021 19:56:15 +0000 (11:56 -0800)
polly/lib/Analysis/ScopBuilder.cpp

index 96557db..af81862 100644 (file)
@@ -1527,7 +1527,7 @@ void ScopBuilder::addRecordedAssumptions() {
 void ScopBuilder::addUserAssumptions(
     AssumptionCache &AC, DenseMap<BasicBlock *, isl::set> &InvalidDomainMap) {
   for (auto &Assumption : AC.assumptions()) {
-    auto *CI = dyn_cast_or_null<CallInst>(Assumption);
+    auto *CI = dyn_cast_or_null<CallInst>(Assumption.getAssumeCI());
     if (!CI || CI->getNumArgOperands() != 1)
       continue;