From: Tom Stellard Date: Wed, 5 Sep 2012 18:35:47 +0000 (-0400) Subject: radeon/llvm: Assert if we try to encode an unknown register X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d399ce7615d58486dda34d953ade6ad7b837bc42;p=mesa.git radeon/llvm: Assert if we try to encode an unknown register Reviewed-by: Michel Dänzer --- 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" }