summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 8cfdd941b8f..3ca5493d2cb 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -628,17 +628,6 @@ static void HandleMacOSVersionMin(std::string &Triple) {
}
unsigned DarwinNumIdx = DarwinDashIdx + strlen("-darwin");
- // Validate that there is a number after the "-darwin" and nothing else.
- bool IsValidDarwinNumber = Triple.size() != DarwinNumIdx;
- for (unsigned i = DarwinNumIdx; i != Triple.size(); ++i)
- if ((Triple[i] < '0' || Triple[i] > '9') && Triple[i] != '.')
- IsValidDarwinNumber = false;
- if (!IsValidDarwinNumber) {
- fprintf(stderr, "invalid darwin target triple '%s' expected number\n",
- Triple.c_str());
- exit(1);
- }
-
// Remove the number.
Triple.resize(DarwinNumIdx);
OpenPOWER on IntegriCloud