Skip to content

Commit 78f05df

Browse files
committed
Fix braces
1 parent dc5b7c1 commit 78f05df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Analysis/Loads.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,9 @@ bool llvm::isReadOnlyLoopWithSafeOrSpeculativeLoads(
880880
if (auto *LI = dyn_cast<LoadInst>(&I)) {
881881
if (!isDereferenceableAndAlignedInLoop(LI, L, *SE, *DT, AC, Predicates))
882882
SpeculativeLoads->push_back(LI);
883-
} else if (I.mayReadFromMemory() || I.mayWriteToMemory() || I.mayThrow())
883+
} else if (I.mayReadFromMemory() || I.mayWriteToMemory() || I.mayThrow()) {
884884
return false;
885+
}
885886
}
886887
}
887888
return true;

0 commit comments

Comments
 (0)