OSDN Git Service

Fix -Wreturn-type warning with HAVE_DIA_SDK is false.
authorZachary Turner <zturner@google.com>
Thu, 21 Apr 2016 22:16:19 +0000 (22:16 +0000)
committerZachary Turner <zturner@google.com>
Thu, 21 Apr 2016 22:16:19 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267068 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/PDB/PDB.cpp

index 723d1d2..4bc0141 100644 (file)
@@ -30,6 +30,7 @@ PDB_ErrorCode llvm::loadDataForPDB(PDB_ReaderType Type, StringRef Path,
 #if HAVE_DIA_SDK
   return DIASession::createFromPdb(Path, Session);
 #endif
+       return PDB_ErrorCode::NoDiaSupport;
 }
 
 PDB_ErrorCode llvm::loadDataForEXE(PDB_ReaderType Type, StringRef Path,
@@ -41,4 +42,5 @@ PDB_ErrorCode llvm::loadDataForEXE(PDB_ReaderType Type, StringRef Path,
 #if HAVE_DIA_SDK
   return DIASession::createFromExe(Path, Session);
 #endif
+       return PDB_ErrorCode::NoDiaSupport;
 }