diff --git a/expr.cpp b/expr.cpp index 3eaaa96f..7c270f46 100644 --- a/expr.cpp +++ b/expr.cpp @@ -6415,9 +6415,10 @@ lUniformValueToVarying(FunctionEmitContext *ctx, llvm::Value *value, return retValue; } - // Otherwise we must have a uniform AtomicType, so smear its value - // across the vector lanes. - Assert(CastType(type) != NULL); + // Otherwise we must have a uniform atomic or pointer type, so smear + // its value across the vector lanes. + Assert(CastType(type) != NULL || + CastType(type) != NULL); return ctx->SmearUniform(value); }