From 28098485bc4007c12ffcf02a95f93da653a48c70 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 23 Oct 2017 22:44:24 +0000 Subject: [PATCH] [codeview] Recognize two records with no type index fields Thunk records do not have types and frame cookies do not have types. These were found while linking libconcrt.lib from MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316385 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp b/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp index 650f1942b94..c802b6b6935 100644 --- a/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp +++ b/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp @@ -434,6 +434,8 @@ static bool discoverTypeIndices(ArrayRef Content, SymbolKind Kind, case SymbolKind::S_ENVBLOCK: case SymbolKind::S_BLOCK32: case SymbolKind::S_FRAMEPROC: + case SymbolKind::S_THUNK32: + case SymbolKind::S_FRAMECOOKIE: break; // Scope ending symbols. case SymbolKind::S_END: -- 2.11.0