diff options
Diffstat (limited to 'polly/lib/Support/ScopHelper.cpp')
-rw-r--r-- | polly/lib/Support/ScopHelper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp index 52e673357ae..39a6040d50c 100644 --- a/polly/lib/Support/ScopHelper.cpp +++ b/polly/lib/Support/ScopHelper.cpp @@ -70,6 +70,8 @@ Value *polly::getPointerOperand(Instruction &Inst) { Type *polly::getAccessInstType(Instruction *AccInst) { if (StoreInst *Store = dyn_cast<StoreInst>(AccInst)) return Store->getValueOperand()->getType(); + if (BranchInst *Branch = dyn_cast<BranchInst>(AccInst)) + return Branch->getCondition()->getType(); return AccInst->getType(); } |