[llvm] r278418 - [MSSA] Use is_contained
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 14:26:51 PDT 2016
Author: dannyb
Date: Thu Aug 11 16:26:50 2016
New Revision: 278418
URL: http://llvm.org/viewvc/llvm-project?rev=278418&view=rev
Log:
[MSSA] Use is_contained
Modified:
llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
Modified: llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp?rev=278418&r1=278417&r2=278418&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/MemorySSA.cpp Thu Aug 11 16:26:50 2016
@@ -1885,7 +1885,7 @@ void MemorySSA::verifyUseInDefs(MemoryAc
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
}
More information about the llvm-commits
mailing list