Mesa (master): glsl: fix unreachable(!"") to unreachable("")

Tapani Pälli tpalli at kemper.freedesktop.org
Mon Mar 30 05:17:04 UTC 2015


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

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Mon Mar 30 07:59:53 2015 +0300

glsl: fix unreachable(!"") to unreachable("")

Correct error with commit 151fb1e where assert was renamed
to unreachable without removing ! from string argument.

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/glsl/loop_controls.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp
index d7f0b28..51804bb 100644
--- a/src/glsl/loop_controls.cpp
+++ b/src/glsl/loop_controls.cpp
@@ -139,7 +139,7 @@ calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment,
          iter = new(mem_ctx) ir_constant(double(iter_value + bias[i]));
          break;
       default:
-          unreachable(!"Unsupported type for loop iterator.");
+          unreachable("Unsupported type for loop iterator.");
       }
 
       ir_expression *const mul =




More information about the mesa-commit mailing list