[PATCH] D18918: [DebugInfo] Try to make class memory layout more efficient

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 08:00:19 PDT 2016


aprantl added inline comments.

================
Comment at: include/llvm/IR/DebugInfoMetadata.h:1257
@@ +1256,3 @@
+        IsDefinition(IsDefinition), IsOptimized(IsOptimized) {
+    static_assert(log2(dwarf::DW_VIRTUALITY_max) < 4, "Virtuality out of range");
+    assert(Virtuality < 4 && "Virtuality out of range");
----------------
Sorry, but it looks like my suggestion was incorrect: It's either log2(DW_VIRTUALITY_max) <= 2 or DW_VIRTUALITY_max < 4.


http://reviews.llvm.org/D18918





More information about the llvm-commits mailing list