diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 |
| commit | d8e91e46262bc44006913e6796843909f1ac7bcd (patch) | |
| tree | 7d0c143d9b38190e0fa0180805389da22cd834c5 /unittests/Analysis/AliasSetTrackerTest.cpp | |
| parent | b7eb8e35e481a74962664b63dfb09483b200209a (diff) | |
Notes
Diffstat (limited to 'unittests/Analysis/AliasSetTrackerTest.cpp')
| -rw-r--r-- | unittests/Analysis/AliasSetTrackerTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Analysis/AliasSetTrackerTest.cpp b/unittests/Analysis/AliasSetTrackerTest.cpp index 886971c4d3a2..57d21e2fcb86 100644 --- a/unittests/Analysis/AliasSetTrackerTest.cpp +++ b/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); |
