Browse Source

Merge branch 'user/texr/unused-var-warning' into user/texr/rt-merge-rebase

Tex Riddell 7 years ago
parent
commit
6f531dedd0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/HLSL/HLMatrixLowerPass.cpp

+ 1 - 1
lib/HLSL/HLMatrixLowerPass.cpp

@@ -1289,7 +1289,7 @@ void HLMatrixLowerPass::TranslateMatMajorCast(Value *matVal,
     Type *castTy = GetMatrixInfo(castInst->getType(), castCol, castRow);
     unsigned srcCol, srcRow;
     Type *srcTy = GetMatrixInfo(matVal->getType(), srcCol, srcRow);
-    DXASSERT(srcTy == castTy, "type must match");
+    DXASSERT_LOCALVAR((void)(srcTy && castTy), srcTy == castTy, "type must match");
     DXASSERT(castCol == srcRow && castRow == srcCol, "col row must match");
     col = srcCol;
     row = srcRow;