Kaynağa Gözat

Fixed a failure with LexicalBlockFile (#2453)

Adam Yang 6 yıl önce
ebeveyn
işleme
56222b94be
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      lib/DxilDia/DxilDiaSymbolManager.cpp

+ 2 - 0
lib/DxilDia/DxilDiaSymbolManager.cpp

@@ -1142,6 +1142,8 @@ HRESULT dxil_dia::hlsl_symbols::SymbolManagerInit::CreateFunctionBlockForLocalSc
     }
   } else if (auto *Block = llvm::dyn_cast<llvm::DILexicalBlock>(LS)) {
     ParentLS = Block->getScope();
+  } else if (auto *BlockFile = llvm::dyn_cast<llvm::DILexicalBlockFile>(LS)) {
+    ParentLS = BlockFile->getScope();
   }
 
   if (ParentLS == nullptr) {