f08dbfb441
Update to llvm 3.8.1 Many other fixes and cleanups OBS-URL: https://build.opensuse.org/request/show/425075 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=467
15 lines
693 B
Diff
15 lines
693 B
Diff
Index: cfe-3.8.1.src/lib/Driver/ToolChains.cpp
|
|
===================================================================
|
|
--- cfe-3.8.1.src/lib/Driver/ToolChains.cpp
|
|
+++ cfe-3.8.1.src/lib/Driver/ToolChains.cpp
|
|
@@ -1091,7 +1091,8 @@ Generic_GCC::GCCVersion Linux::GCCVersio
|
|
if (First.first.getAsInteger(10, GoodVersion.Major) || GoodVersion.Major < 0)
|
|
return BadVersion;
|
|
GoodVersion.MajorStr = First.first.str();
|
|
- if (Second.first.getAsInteger(10, GoodVersion.Minor) || GoodVersion.Minor < 0)
|
|
+ if (!Second.first.str().empty() &&
|
|
+ (Second.first.getAsInteger(10, GoodVersion.Minor) || GoodVersion.Minor < 0))
|
|
return BadVersion;
|
|
GoodVersion.MinorStr = Second.first.str();
|
|
|