From 8d6a09de7df1836e386678da49134db4fb847f2e Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Fri, 20 Dec 2013 02:54:35 +0000 Subject: [PATCH] When parsing data layout string looking for endianness, use the correct default git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197771 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/Module.cpp b/lib/IR/Module.cpp index 3d807144d6a..f938a92741a 100644 --- a/lib/IR/Module.cpp +++ b/lib/IR/Module.cpp @@ -63,7 +63,7 @@ Module::~Module() { /// Target endian information. Module::Endianness Module::getEndianness() const { StringRef temp = DataLayout; - Module::Endianness ret = AnyEndianness; + Module::Endianness ret = BigEndian; while (!temp.empty()) { std::pair P = getToken(temp, "-"); -- 2.34.1