Преглед на файлове

Initialized the commitsha string ref with an empty string rather than leaving it null (#3453)

Adam Yang преди 4 години
родител
ревизия
83cf9a1511
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tools/clang/tools/dxcompiler/dxcompilerobj.cpp

+ 1 - 1
tools/clang/tools/dxcompiler/dxcompilerobj.cpp

@@ -96,7 +96,7 @@ static bool ShouldBeCopiedIntoPDB(UINT32 FourCC) {
 struct CompilerVersionPartWriter {
   hlsl::DxilCompilerVersion m_Header = {};
   CComHeapPtr<char> m_CommitShaStorage;
-  llvm::StringRef m_CommitSha;
+  llvm::StringRef m_CommitSha = "";
 
   void Init(IDxcVersionInfo *pVersionInfo) {
     m_Header = {};