[llvm] Handle typeidCompatibleVTable in skipModuleSummaryEntry (PR #196849)

Owen Rodley via llvm-commits llvm-commits at lists.llvm.org
Sun May 10 17:29:06 PDT 2026


https://github.com/orodley created https://github.com/llvm/llvm-project/pull/196849

This method needs to match the set of cases handled in parseSummaryEntry.

>From 976211fff274ea07b5ef91cce23962e3297cc4bd Mon Sep 17 00:00:00 2001
From: orodley <orodley at google.com>
Date: Mon, 11 May 2026 00:24:17 +0000
Subject: [PATCH] Handle typeidCompatibleVTable in skipModuleSummaryEntry

This method needs to match the set of cases handled in parseSummaryEntry.
---
 llvm/lib/AsmParser/LLParser.cpp | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 820f64bf30ba7..502f1a5767131 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -1067,11 +1067,12 @@ bool LLParser::skipModuleSummaryEntry() {
   // support is in place we will look for the tokens corresponding to the
   // expected tags.
   if (Lex.getKind() != lltok::kw_gv && Lex.getKind() != lltok::kw_module &&
-      Lex.getKind() != lltok::kw_typeid && Lex.getKind() != lltok::kw_flags &&
-      Lex.getKind() != lltok::kw_blockcount)
-    return tokError(
-        "Expected 'gv', 'module', 'typeid', 'flags' or 'blockcount' at the "
-        "start of summary entry");
+      Lex.getKind() != lltok::kw_typeid &&
+      Lex.getKind() != lltok::kw_typeidCompatibleVTable &&
+      Lex.getKind() != lltok::kw_flags && Lex.getKind() != lltok::kw_blockcount)
+    return tokError("Expected 'gv', 'module', 'typeid', "
+                    "'typeidCompatibleVTable', 'flags' or 'blockcount' at the "
+                    "start of summary entry");
   if (Lex.getKind() == lltok::kw_flags)
     return parseSummaryIndexFlags();
   if (Lex.getKind() == lltok::kw_blockcount)



More information about the llvm-commits mailing list