[llvm] r267068 - Fix -Wreturn-type warning with HAVE_DIA_SDK is false.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 15:16:19 PDT 2016


Author: zturner
Date: Thu Apr 21 17:16:19 2016
New Revision: 267068

URL: http://llvm.org/viewvc/llvm-project?rev=267068&view=rev
Log:
Fix -Wreturn-type warning with HAVE_DIA_SDK is false.

Modified:
    llvm/trunk/lib/DebugInfo/PDB/PDB.cpp

Modified: llvm/trunk/lib/DebugInfo/PDB/PDB.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/PDB.cpp?rev=267068&r1=267067&r2=267068&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/PDB.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/PDB.cpp Thu Apr 21 17:16:19 2016
@@ -30,6 +30,7 @@ PDB_ErrorCode llvm::loadDataForPDB(PDB_R
 #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_R
 #if HAVE_DIA_SDK
   return DIASession::createFromExe(Path, Session);
 #endif
+	return PDB_ErrorCode::NoDiaSupport;
 }




More information about the llvm-commits mailing list