[PATCH] D33437: Emit available_externally vtables opportunistically

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 29 11:11:43 PDT 2017


dblaikie added inline comments.


================
Comment at: lib/CodeGen/CodeGenModule.cpp:1383-1385
+  if (!OpportunisticVTables.empty())
+    assert(shouldOpportunisticallyEmitVTables() &&
+           "Only emit opportunistic vtables with optimizations");
----------------
Perhaps this:
  assert(OpportunisticVTables.empty() || shouldOpportunisticallyEmitVTables() && ... )

(it's a bit odd to have a condition that only goes to an assert - rather than having both conditions inside the assertion)


https://reviews.llvm.org/D33437





More information about the cfe-commits mailing list