projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a16c22
)
[MSSA] Use is_contained
author
Daniel Berlin
<dberlin@dberlin.org>
Thu, 11 Aug 2016 21:26:50 +0000
(21:26 +0000)
committer
Daniel Berlin
<dberlin@dberlin.org>
Thu, 11 Aug 2016 21:26:50 +0000
(21:26 +0000)
llvm-svn: 278418
llvm/lib/Transforms/Utils/MemorySSA.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Utils/MemorySSA.cpp
b/llvm/lib/Transforms/Utils/MemorySSA.cpp
index
74b2927
..
8a4fd93
100644
(file)
--- a/
llvm/lib/Transforms/Utils/MemorySSA.cpp
+++ b/
llvm/lib/Transforms/Utils/MemorySSA.cpp
@@
-1885,7
+1885,7
@@
void MemorySSA::verifyUseInDefs(MemoryAccess *Def, MemoryAccess *Use) const {
assert(isLiveOnEntryDef(Use) &&
"Null def but use not point to live on entry def");
else
- assert(
find(Def->users(), Use) != Def->user_end(
) &&
+ assert(
is_contained(Def->users(), Use
) &&
"Did not find use in def's use list");
#endif
}