Mesa (master): aco: Don't declare 'Block' as class, but define as struct.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 2 21:44:39 UTC 2020


Module: Mesa
Branch: master
Commit: 536339b0dda33241d21a0e045681419ca46fc812
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=536339b0dda33241d21a0e045681419ca46fc812

Author: Oschowa <oschowa at web.de>
Date:   Fri May 22 12:40:29 2020 +0200

aco: Don't declare 'Block' as class, but define as struct.

Fixes clang warnings.

Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5228>

---

 src/amd/compiler/aco_ir.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h
index 3921cad89ab..a25efe1e7a1 100644
--- a/src/amd/compiler/aco_ir.h
+++ b/src/amd/compiler/aco_ir.h
@@ -748,7 +748,7 @@ private:
    };
 };
 
-class Block;
+struct Block;
 
 struct Instruction {
    aco_opcode opcode;



More information about the mesa-commit mailing list