瀏覽代碼

vk_shader_decompiler: Don't assert for void returns

Atomic instructions can be used without returning anything and this is
valid code. Remove the assert.
ReinUsesLisp 6 年之前
父節點
當前提交
434856c636
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/video_core/renderer_vulkan/vk_shader_decompiler.cpp

+ 1 - 2
src/video_core/renderer_vulkan/vk_shader_decompiler.cpp

@@ -1071,8 +1071,7 @@ private:
 
     void VisitBasicBlock(const NodeBlock& bb) {
         for (const auto& node : bb) {
-            [[maybe_unused]] const Type type = Visit(node).type;
-            ASSERT(type == Type::Void);
+            Visit(node);
         }
     }