summaryrefslogtreecommitdiff
path: root/src/ir/possible-contents.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-07-31 12:59:38 -0700
committerGitHub <noreply@github.com>2023-07-31 12:59:38 -0700
commit465ebbf470e878cac6cf7a9629c413add97f9bb9 (patch)
treed27544a3d9cb8d5e59c469790414c23a57c09a49 /src/ir/possible-contents.h
parent1ac8770aee26a221c86a7fe92194a06f5c094070 (diff)
downloadbinaryen-465ebbf470e878cac6cf7a9629c413add97f9bb9.tar.gz
binaryen-465ebbf470e878cac6cf7a9629c413add97f9bb9.tar.bz2
binaryen-465ebbf470e878cac6cf7a9629c413add97f9bb9.zip
PossibleContents: Support more intersection types (#5847)
Diffstat (limited to 'src/ir/possible-contents.h')
-rw-r--r--src/ir/possible-contents.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ir/possible-contents.h b/src/ir/possible-contents.h
index b4326688e..018cf197c 100644
--- a/src/ir/possible-contents.h
+++ b/src/ir/possible-contents.h
@@ -176,9 +176,8 @@ public:
}
// Removes anything not in |other| from this object, so that it ends up with
- // only their intersection. Currently this only handles an intersection with a
- // full cone.
- void intersectWithFullCone(const PossibleContents& other);
+ // only their intersection.
+ void intersect(const PossibleContents& other);
bool isNone() const { return std::get_if<None>(&value); }
bool isLiteral() const { return std::get_if<Literal>(&value); }