radeon/llvm: Assert if we try to encode an unknown register
authorTom Stellard <thomas.stellard@amd.com>
Wed, 5 Sep 2012 18:35:47 +0000 (14:35 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 11 Sep 2012 18:53:48 +0000 (14:53 -0400)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/SIGenRegisterInfo.pl

index 3813eb5ad124c4e8f7d2c672c723a88daf7c548b..48bd5676eb0fb579a4e9b1ed97d95f83fb9530be 100644 (file)
@@ -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"
 }