summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopDetection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index 2046a907f3e..c4484bb4056 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -980,8 +980,8 @@ bool ScopDetection::isValidInstruction(Instruction &Inst,
// Check the access function.
if (auto MemInst = MemAccInst::dyn_cast(Inst)) {
- Context.hasStores |= MemInst.isLoad();
- Context.hasLoads |= MemInst.isStore();
+ Context.hasStores |= MemInst.isStore();
+ Context.hasLoads |= MemInst.isLoad();
if (!MemInst.isSimple())
return invalid<ReportNonSimpleMemoryAccess>(Context, /*Assert=*/true,
&Inst);
OpenPOWER on IntegriCloud