diff --git a/src/ir/effects.h b/src/ir/effects.h index 4d4d5d5372b..b6943c5a740 100644 --- a/src/ir/effects.h +++ b/src/ir/effects.h @@ -1330,7 +1330,7 @@ class EffectAnalyzer { template void addCallEffects(const CallType* curr, - const EffectAnalyzer* bodyEffects) { + NullablePtr bodyEffects) { if (curr->isReturn) { parent.branchesOut = true; } diff --git a/src/support/utilities.h b/src/support/utilities.h index 272488e18f8..824040961f8 100644 --- a/src/support/utilities.h +++ b/src/support/utilities.h @@ -105,6 +105,11 @@ template struct overloaded : Ts... { using Ts::operator()...; }; +// Used to annotate (for human readers) that a pointer may be null. +// e.g. NullablePtr +template +using NullablePtr = T; + } // namespace wasm #endif // wasm_support_utilities_h