================
@@ -107,6 +108,8 @@
PointerFlowMatcher::addEdges(Expected<EntityPointerLevelSet> &&LHS,
return LHS.takeError();
if (!RHS)
return RHS.takeError();
+ if (RHS->empty())
+ return llvm::Error::success();
----------------
steakhal wrote:
Technically, this is not needed, and we lose symmetry.
It's also an unexpected case, right? - In other words, on the happy path, this
should never be empty.
https://github.com/llvm/llvm-project/pull/201953
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits