[PATCH] D140306: [clang][dataflow] Remove stray lines from `Environment::join`
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 19 06:51:36 PST 2022
ymandel created this revision.
ymandel added a reviewer: gribozavr2.
Herald added subscribers: martong, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
ymandel requested review of this revision.
Herald added a project: clang.
Removes an assertion and a useless line. The assertion seems left over from
earlier debugging and the line that follows is a stray line.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140306
Files:
clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
Index: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
===================================================================
--- clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
+++ clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
@@ -444,10 +444,6 @@
JoinedEnv.MemberLocToStruct =
intersectDenseMaps(MemberLocToStruct, Other.MemberLocToStruct);
- assert(JoinedEnv.MemberLocToStruct.size() <=
- std::min(MemberLocToStruct.size(), Other.MemberLocToStruct.size()));
-
- intersectDenseMaps(MemberLocToStruct, Other.MemberLocToStruct);
if (MemberLocToStruct.size() != JoinedEnv.MemberLocToStruct.size())
Effect = LatticeJoinEffect::Changed;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140306.483952.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221219/3c76f60b/attachment.bin>
More information about the cfe-commits
mailing list