From d399ce7615d58486dda34d953ade6ad7b837bc42 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 5 Sep 2012 14:35:47 -0400 Subject: [PATCH] radeon/llvm: Assert if we try to encode an unknown register MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeon/SIGenRegisterInfo.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/SIGenRegisterInfo.pl b/src/gallium/drivers/radeon/SIGenRegisterInfo.pl index 3813eb5ad12..48bd5676eb0 100644 --- a/src/gallium/drivers/radeon/SIGenRegisterInfo.pl +++ b/src/gallium/drivers/radeon/SIGenRegisterInfo.pl @@ -241,7 +241,7 @@ if ($INDEX_FILE ne '') { } print $fh " return $key;\n"; } - print $fh " default: return 0;\n }\n}\n" + print $fh " default: assert(!\"Unknown Register\"); return 0;\n }\n}\n" } -- 2.30.2