diff options
author | Tom Stellard <[email protected]> | 2012-09-05 14:35:47 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-09-11 14:53:48 -0400 |
commit | d399ce7615d58486dda34d953ade6ad7b837bc42 (patch) | |
tree | bfe1998e735563feb1d1e91dbe74b218dcd9daac /src/gallium/drivers/radeon | |
parent | 0df2753ad21175d8914a8c2ca512cf79246c10fd (diff) |
radeon/llvm: Assert if we try to encode an unknown register
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/SIGenRegisterInfo.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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" } |