Commit 95c87b65 by danginsburg

Fix issue #1350 - set the node type to match the atomic TIntermAggregate node…

Fix issue #1350 - set the node type to match the atomic TIntermAggregate node type so that AtomicSMin/Max is not generated with a result type of void.
parent 0f8d43e5
...@@ -4815,6 +4815,7 @@ void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*& ...@@ -4815,6 +4815,7 @@ void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*&
} else { } else {
// Set the matching operator. Since output is absent, this is all we need to do. // Set the matching operator. Since output is absent, this is all we need to do.
node->getAsAggregate()->setOperator(atomicOp); node->getAsAggregate()->setOperator(atomicOp);
node->setType(atomic->getType());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment