[Lldb-commits] [lldb] r247647 - Fix error on windows:
Ryan Brown via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 14 17:50:43 PDT 2015
Author: ribrdb
Date: Mon Sep 14 19:50:43 2015
New Revision: 247647
URL: http://llvm.org/viewvc/llvm-project?rev=247647&view=rev
Log:
Fix error on windows:
c:\buildbot\lldb-windows-x86\lldb-windows-x86\llvm\tools\lldb\source\symbol\goastcontext.cpp(906) : warning C4715: 'lldb_private::GoASTContext::GetBitSize' : not all control paths return a value
c:\buildbot\lldb-windows-x86\lldb-windows-x86\llvm\tools\lldb\source\symbol\goastcontext.cpp(1175) : error C4716: 'lldb_private::GoASTContext::ConvertStringToFloatValue' : must return a value
Modified:
lldb/trunk/source/Symbol/GoASTContext.cpp
Modified: lldb/trunk/source/Symbol/GoASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/GoASTContext.cpp?rev=247647&r1=247646&r2=247647&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/GoASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/GoASTContext.cpp Mon Sep 14 19:50:43 2015
@@ -903,6 +903,7 @@ GoASTContext::GetBitSize(void *type, Exe
default:
assert(false);
}
+ return 0;
}
lldb::Encoding
@@ -1172,6 +1173,7 @@ size_t
GoASTContext::ConvertStringToFloatValue(void *type, const char *s, uint8_t *dst, size_t dst_size)
{
assert(false);
+ return 0;
}
//----------------------------------------------------------------------
// Dumping types
More information about the lldb-commits
mailing list