summaryrefslogtreecommitdiff
path: root/src/passes/DataFlowOpts.cpp
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-02 03:28:47 +0200
committerGitHub <noreply@github.com>2020-09-02 03:28:47 +0200
commit949bf4916c6dcd9409888a677739c4c844bb9eda (patch)
treec6b633ba215f4e3e7e4412fc56a19f34760f9984 /src/passes/DataFlowOpts.cpp
parent85234cb540c2b2863dfea6c20496dcb451df8889 (diff)
downloadbinaryen-949bf4916c6dcd9409888a677739c4c844bb9eda.tar.gz
binaryen-949bf4916c6dcd9409888a677739c4c844bb9eda.tar.bz2
binaryen-949bf4916c6dcd9409888a677739c4c844bb9eda.zip
Harden exnref literals (#3092)
* Make `Literal::type` immutable to guarantee that we do not lose track of `Literal::exn` by changing the literal's type * Add an assert to guarantee that we don't create `exnref` literals without an `ExceptionPackage` (for now) * Enforce rvalue reference when creating an `exnref` Literal from a `std::unique_ptr<ExceptionPackage>`, avoiding a redundant copy by means of requiring `std::move`
Diffstat (limited to 'src/passes/DataFlowOpts.cpp')
0 files changed, 0 insertions, 0 deletions