Fix -Wreturn-type warning with HAVE_DIA_SDK is false.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2016-04-21 22:16:19 +00:00
parent 9c2e16e35e
commit 46d5ec0afd

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