R600/SI: Add new helper isSGPRClassID
[oota-llvm.git] / lib / DebugInfo / DWARFDebugArangeSet.cpp
index 8459cb1378930d21a621dc6ad63df522929bdf93..c0a33ceaf24324a0465579a93d153ec30594b884 100644 (file)
@@ -67,7 +67,9 @@ DWARFDebugArangeSet::extract(DataExtractor data, uint32_t *offset_ptr) {
 
     Descriptor arangeDescriptor;
 
-    assert(sizeof(arangeDescriptor.Address) == sizeof(arangeDescriptor.Length));
+    static_assert(sizeof(arangeDescriptor.Address) ==
+                      sizeof(arangeDescriptor.Length),
+                  "Different datatypes for addresses and sizes!");
     assert(sizeof(arangeDescriptor.Address) >= HeaderData.AddrSize);
 
     while (data.isValidOffset(*offset_ptr)) {