Correctly apply the default pointer size

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dmitri Gribenko 2013-12-20 02:46:23 +00:00
parent 75a8b23e10
commit ea5893eb2d

View File

@ -84,7 +84,7 @@ Module::Endianness Module::getEndianness() const {
/// Target Pointer Size information.
Module::PointerSize Module::getPointerSize() const {
StringRef temp = DataLayout;
Module::PointerSize ret = AnyPointerSize;
Module::PointerSize ret = Pointer64;
while (!temp.empty()) {
std::pair<StringRef, StringRef> TmpP = getToken(temp, "-");