mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-02 08:11:54 +00:00
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:
parent
9c2e16e35e
commit
46d5ec0afd
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user