aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorPatrik Hägglund <patrik.h.hagglund@ericsson.com>2012-11-23 14:51:42 +0000
committerPatrik Hägglund <patrik.h.hagglund@ericsson.com>2012-11-23 14:51:42 +0000
commit834518f1cea15796a377afb31844638e3c483e78 (patch)
tree3d5ef0baf87c624e310a006adba1abebbccdb62f /lib/VMCore
parentb46702c800e0e1ddb9b4b022d0c08c2b0b27b269 (diff)
downloadexternal_llvm-834518f1cea15796a377afb31844638e3c483e78.zip
external_llvm-834518f1cea15796a377afb31844638e3c483e78.tar.gz
external_llvm-834518f1cea15796a377afb31844638e3c483e78.tar.bz2
Disallow the undocumented practice of starting the datalayout string with '-'.
Update some test cases accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/DataLayout.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/DataLayout.cpp b/lib/VMCore/DataLayout.cpp
index 24111be..e21868b 100644
--- a/lib/VMCore/DataLayout.cpp
+++ b/lib/VMCore/DataLayout.cpp
@@ -193,9 +193,6 @@ std::string DataLayout::parseSpecifier(StringRef Desc) {
StringRef Token = Split.first;
Desc = Split.second;
- if (Token.empty())
- continue;
-
Split = Token.split(':');
StringRef Specifier = Split.first;
Token = Split.second;