summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/DataLayout.cpp
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
commit59189597dea143e68a4b86dd206c706cf3535365 (patch)
treecb8aa7dd42b19197edbf8b5a342a0696dfc1850d /llvm/lib/VMCore/DataLayout.cpp
parent88806c286577fe2954922d35ba31e426823ed405 (diff)
downloadbcm5719-llvm-59189597dea143e68a4b86dd206c706cf3535365.tar.gz
bcm5719-llvm-59189597dea143e68a4b86dd206c706cf3535365.zip
Disallow the undocumented practice of starting the datalayout string with '-'.
Update some test cases accordingly. llvm-svn: 168516
Diffstat (limited to 'llvm/lib/VMCore/DataLayout.cpp')
-rw-r--r--llvm/lib/VMCore/DataLayout.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/DataLayout.cpp b/llvm/lib/VMCore/DataLayout.cpp
index 24111be3162..e21868be442 100644
--- a/llvm/lib/VMCore/DataLayout.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud