diff options
Diffstat (limited to 'llvm/unittests/Analysis/AliasSetTrackerTest.cpp')
| -rw-r--r-- | llvm/unittests/Analysis/AliasSetTrackerTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/AliasSetTrackerTest.cpp b/llvm/unittests/Analysis/AliasSetTrackerTest.cpp index 886971c4d3a..57d21e2fcb8 100644 --- a/llvm/unittests/Analysis/AliasSetTrackerTest.cpp +++ b/llvm/unittests/Analysis/AliasSetTrackerTest.cpp @@ -78,6 +78,8 @@ TEST(AliasSetTracker, AliasUnknownInst) { for (auto &Inst : *Test->begin()) { bool FoundAS = false; for (AliasSet &AS : AST) { + if (!Inst.mayReadOrWriteMemory()) + continue; if (!AS.aliasesUnknownInst(&Inst, AA)) continue; ASSERT_NE(FoundAS, true); |

