]> granicus.if.org Git - llvm/commitdiff
[codeview] Recognize two records with no type index fields
authorReid Kleckner <rnk@google.com>
Mon, 23 Oct 2017 22:44:24 +0000 (22:44 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 23 Oct 2017 22:44:24 +0000 (22:44 +0000)
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

index 650f1942b94e7ca00236666aa8b8f0c3e8598bde..c802b6b693518cb39eb308ea8e4531d2345f0bd7 100644 (file)
@@ -434,6 +434,8 @@ static bool discoverTypeIndices(ArrayRef<uint8_t> 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: