diff --git a/src/awst_build/eb/op-module-builder.ts b/src/awst_build/eb/op-module-builder.ts index 13617dcc..7216e6a6 100644 --- a/src/awst_build/eb/op-module-builder.ts +++ b/src/awst_build/eb/op-module-builder.ts @@ -4,7 +4,7 @@ import type { SourceLocation } from '../../awst/source-location' import { CodeError, InternalError } from '../../errors' import { enumerate, invariant } from '../../util' import type { IntrinsicOpGrouping, IntrinsicOpMapping } from '../op-metadata' -import { OP_METADATA } from '../op-metadata' +import { OP_METADATA, VOID_OPS } from '../op-metadata' import type { PType } from '../ptypes' import { IntrinsicEnumType, IntrinsicFunctionGroupType, IntrinsicFunctionType, stringPType } from '../ptypes' import { typeRegistry } from '../type-registry' @@ -33,7 +33,7 @@ export class IntrinsicOpGroupBuilder extends NodeBuilder { } const metaData = this.opGrouping.ops[name] - if (metaData.signatures.some((s) => s.argNames.length)) { + if (VOID_OPS.includes(metaData.op) || metaData.signatures.some((s) => s.argNames.length)) { return new GroupedIntrinsicOpBuilder(sourceLocation, metaData) } diff --git a/src/awst_build/op-metadata.ts b/src/awst_build/op-metadata.ts index 6ea1144b..ffd626ab 100644 --- a/src/awst_build/op-metadata.ts +++ b/src/awst_build/op-metadata.ts @@ -4774,3 +4774,5 @@ export const OP_METADATA: Record