From 436c53037e98deb5cc283ee43a3629fcc881f30e Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 19 Mar 2012 11:29:14 -0700 Subject: [PATCH] Fix assertion in FunctionEmitContext::storeUniformToSOA() --- ctx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ctx.cpp b/ctx.cpp index 34de1a17..e82c2877 100644 --- a/ctx.cpp +++ b/ctx.cpp @@ -2876,7 +2876,8 @@ void FunctionEmitContext::storeUniformToSOA(llvm::Value *value, llvm::Value *ptr, llvm::Value *mask, const Type *valueType, const PointerType *ptrType) { - Assert(Type::Equal(ptrType->GetBaseType()->GetAsUniformType(), valueType)); + Assert(Type::EqualIgnoringConst(ptrType->GetBaseType()->GetAsUniformType(), + valueType)); const CollectionType *ct = dynamic_cast(valueType); if (ct != NULL) {