forked from OSchip/llvm-project
Fix -Wreturn-type warning with HAVE_DIA_SDK is false.
llvm-svn: 267068
This commit is contained in:
parent
ad817e8266
commit
d01a7a7894
|
@ -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…
Reference in New Issue