Fix -Wreturn-type warning with HAVE_DIA_SDK is false.

llvm-svn: 267068
This commit is contained in:
Zachary Turner 2016-04-21 22:16:19 +00:00
parent ad817e8266
commit d01a7a7894
1 changed files with 2 additions and 0 deletions

View 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;
}