[llvm] [WPD] Reduce ThinLTO link time by avoiding unnecessary summary analysis (PR #164046)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 17 23:58:25 PDT 2025


================
@@ -1142,6 +1142,11 @@ bool DevirtIndex::tryFindVirtualCallTargets(
         if (LocalFound)
           return false;
         LocalFound = true;
+      } else {
+        // Don't expect to find a mix of locals and non-locals (due to path
+        // prefix for locals one should never have the same GUID as a
+        // non-local).
+        assert(!LocalFound);
----------------
mingmingl-llvm wrote:

https://llvm.org/docs/CodingStandards.html#assert-liberally suggests _put some kind of error message in the assertion statement, which is printed if the assertion is tripped_

https://github.com/llvm/llvm-project/pull/164046


More information about the llvm-commits mailing list