projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e24f2a
)
Driver: Attmpt to fix some possibly UB that MSVC doesn't care for.
author
Daniel Dunbar
<daniel@zuster.org>
Fri, 25 Feb 2011 21:20:15 +0000
(21:20 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Fri, 25 Feb 2011 21:20:15 +0000
(21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126513
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Driver/ToolChains.cpp
patch
|
blob
|
history
diff --git
a/lib/Driver/ToolChains.cpp
b/lib/Driver/ToolChains.cpp
index d8c374437b2b3d04a528312fbe8b9388e0154c64..1c396bd0ed5b39385c350f9f00429a89600be408 100644
(file)
--- a/
lib/Driver/ToolChains.cpp
+++ b/
lib/Driver/ToolChains.cpp
@@
-42,7
+42,7
@@
Darwin::Darwin(const HostInfo &Host, const llvm::Triple& Triple)
// Compute the initial Darwin version based on the host.
bool HadExtra;
std::string OSName = Triple.getOSName();
- if (!Driver::GetReleaseVersion(&OSName[6],
+ if (!Driver::GetReleaseVersion(&OSName
.c_str()
[6],
DarwinVersion[0], DarwinVersion[1],
DarwinVersion[2], HadExtra))
getDriver().Diag(clang::diag::err_drv_invalid_darwin_version) << OSName;