Browse Source

An invalid dbg declare doesn't automatically fail everything. (#2252)

Adam Yang 6 năm trước cách đây
mục cha
commit
298076a941
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      lib/DxilDia/DxilDiaSymbolManager.cpp

+ 1 - 2
lib/DxilDia/DxilDiaSymbolManager.cpp

@@ -1795,8 +1795,7 @@ HRESULT dxil_dia::hlsl_symbols::SymbolManagerInit::CreateLiveRanges() {
     llvm::DILocalVariable *LV;
     uint64_t StartOffset;
     uint64_t EndOffset;
-    HRESULT hr;
-    IFR(hr = IsDbgDeclareCall(M, I, &Reg, &RegSize, &LV, &StartOffset, &EndOffset));
+    HRESULT hr = IsDbgDeclareCall(M, I, &Reg, &RegSize, &LV, &StartOffset, &EndOffset);
     if (hr != S_OK) {
       continue;
     }