From 6df7d31a5b8fdeaa9ae5effb885594a5fa300fd4 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Wed, 30 May 2012 16:34:59 -0700 Subject: [PATCH] Fix incorrect assertion. Issue #272. --- expr.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); }