1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-12 07:37:34 +00:00

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
This commit is contained in:
Dmitri Gribenko 2013-12-20 02:54:35 +00:00
parent ea5893eb2d
commit 8d6a09de7d

@ -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<StringRef, StringRef> P = getToken(temp, "-");