diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-15 18:47:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-15 18:47:07 +0000 |
commit | 86c7741f68297cab233a12b44408a463f71aeee6 (patch) | |
tree | e2265b30a882da72f3c57b0bf6ce068983dc64b0 /llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp | |
parent | d6fa23e1db04c1f82499a452cdea7b550fa30366 (diff) | |
download | bcm5719-llvm-86c7741f68297cab233a12b44408a463f71aeee6.tar.gz bcm5719-llvm-86c7741f68297cab233a12b44408a463f71aeee6.zip |
Make some assertions on constant expressions static.
llvm-svn: 204011
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp b/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp index 8459cb13789..c0a33ceaf24 100644 --- a/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp +++ b/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp @@ -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)) { |