summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-12-20 02:46:23 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-12-20 02:46:23 +0000
commitea5893eb2dcfde5f816291c95e309437377c331a (patch)
treef16d7895ddbb1cc163bea8af107b44ef848bb755 /lib
parent75a8b23e1000f3db9f85f3582353f2af448f4622 (diff)
downloadllvm-ea5893eb2dcfde5f816291c95e309437377c331a.tar.gz
llvm-ea5893eb2dcfde5f816291c95e309437377c331a.tar.bz2
llvm-ea5893eb2dcfde5f816291c95e309437377c331a.tar.xz
Correctly apply the default pointer size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/IR/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Module.cpp b/lib/IR/Module.cpp
index 4f240c783e..3d807144d6 100644
--- a/lib/IR/Module.cpp
+++ b/lib/IR/Module.cpp
@@ -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, "-");