|
@@ -1129,6 +1129,9 @@ SpirvInstruction *SpirvEmitter::doExpr(const Expr *expr,
|
|
|
result = curThis;
|
|
|
} else if (const auto *unaryExpr = dyn_cast<UnaryExprOrTypeTraitExpr>(expr)) {
|
|
|
result = doUnaryExprOrTypeTraitExpr(unaryExpr);
|
|
|
+ } else if (const auto *tmplParamExpr =
|
|
|
+ dyn_cast<SubstNonTypeTemplateParmExpr>(expr)) {
|
|
|
+ result = doExpr(tmplParamExpr->getReplacement());
|
|
|
} else {
|
|
|
emitError("expression class '%0' unimplemented", expr->getExprLoc())
|
|
|
<< expr->getStmtClassName() << expr->getSourceRange();
|