[llvm-commits] [llvm] r99330 - /llvm/trunk/lib/VMCore/Module.cpp
Chris Lattner
sabre at nondot.org
Tue Mar 23 14:48:41 PDT 2010
Author: lattner
Date: Tue Mar 23 16:48:41 2010
New Revision: 99330
URL: http://llvm.org/viewvc/llvm-project?rev=99330&view=rev
Log:
fix an infinite loop in Module::getEndianness, PR6684
patch by Alex Mac!
Modified:
llvm/trunk/lib/VMCore/Module.cpp
Modified: llvm/trunk/lib/VMCore/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Module.cpp?rev=99330&r1=99329&r2=99330&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Module.cpp (original)
+++ llvm/trunk/lib/VMCore/Module.cpp Tue Mar 23 16:48:41 2010
@@ -82,7 +82,7 @@
while (!temp.empty()) {
StringRef token = DataLayout;
- tie(token, temp) = getToken(DataLayout, "-");
+ tie(token, temp) = getToken(temp, "-");
if (token[0] == 'e') {
ret = LittleEndian;
More information about the llvm-commits
mailing list