Fix incorrect assertion.

Issue #272.
This commit is contained in:
Matt Pharr
2012-05-30 16:34:59 -07:00
parent ef049e92ef
commit 6df7d31a5b

View File

@@ -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<AtomicType>(type) != NULL);
// Otherwise we must have a uniform atomic or pointer type, so smear
// its value across the vector lanes.
Assert(CastType<AtomicType>(type) != NULL ||
CastType<PointerType>(type) != NULL);
return ctx->SmearUniform(value);
}