From 95c87b657cb5097c3185c54fe6c5f5f9a3b21c2c Mon Sep 17 00:00:00 2001
From: danginsburg <dginsburg@upsamplesoftware.com>
Date: Thu, 12 Apr 2018 16:46:04 -0400
Subject: [PATCH] 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.

---
 hlsl/hlslParseHelper.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hlsl/hlslParseHelper.cpp b/hlsl/hlslParseHelper.cpp
index 478368791..8b4d67ab8 100755
--- a/hlsl/hlslParseHelper.cpp
+++ b/hlsl/hlslParseHelper.cpp
@@ -4815,6 +4815,7 @@ void HlslParseContext::decomposeIntrinsic(const TSourceLoc& loc, TIntermTyped*&
                 } else {
                     // Set the matching operator.  Since output is absent, this is all we need to do.
                     node->getAsAggregate()->setOperator(atomicOp);
+                    node->setType(atomic->getType());
                 }
             }
 
-- 
GitLab