aboutsummaryrefslogtreecommitdiff
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
commita495c7232d63d4eeab394791397ee384620f6864 (patch)
treeb569de0be40a1797b051e921fcc4d975fc0efae6 /lib/VMCore/Module.cpp
parent841e828702df6c28f2af25930cc06e23bd8fcc88 (diff)
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 001bb00f26..94840f07a4 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;