aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-23 21:48:41 +0000
committerChris Lattner <sabre@nondot.org>2010-03-23 21:48:41 +0000
commit2b528f5ad04581d90595731e21a606fe44a8bb83 (patch)
treeb569de0be40a1797b051e921fcc4d975fc0efae6 /lib/VMCore/Module.cpp
parent4756f0ebbf866404e77cdd4d32cf7feb7fce23d1 (diff)
downloadexternal_llvm-2b528f5ad04581d90595731e21a606fe44a8bb83.zip
external_llvm-2b528f5ad04581d90595731e21a606fe44a8bb83.tar.gz
external_llvm-2b528f5ad04581d90595731e21a606fe44a8bb83.tar.bz2
fix an infinite loop in Module::getEndianness, PR6684
patch by Alex Mac! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r--lib/VMCore/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index 001bb00..94840f0 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -82,7 +82,7 @@ Module::Endianness Module::getEndianness() const {
while (!temp.empty()) {
StringRef token = DataLayout;
- tie(token, temp) = getToken(DataLayout, "-");
+ tie(token, temp) = getToken(temp, "-");
if (token[0] == 'e') {
ret = LittleEndian;