diff --git a/src/tint/reader/spirv/function.h b/src/tint/reader/spirv/function.h index 1a08d089bd..b000370cc0 100644 --- a/src/tint/reader/spirv/function.h +++ b/src/tint/reader/spirv/function.h @@ -68,7 +68,8 @@ enum class EdgeKind { kForward }; -enum : uint32_t { kInvalidBlockPos = ~(0u) }; +/// The number used to represent an invalid block position +static constexpr uint32_t kInvalidBlockPos = ~0u; /// Bookkeeping info for a basic block. struct BlockInfo { diff --git a/src/tint/writer/hlsl/generator_impl.h b/src/tint/writer/hlsl/generator_impl.h index 50bce98196..4fcf151d7d 100644 --- a/src/tint/writer/hlsl/generator_impl.h +++ b/src/tint/writer/hlsl/generator_impl.h @@ -67,7 +67,6 @@ struct SanitizedResult { }; /// Sanitize a program in preparation for generating HLSL. -/// @program The program to sanitize /// @param program the input program /// @param options The HLSL generator options. /// @returns the sanitized program and any supplementary information