OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1faea8f
)
Minor code simplification suggested by Duncan
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Sat, 27 Jul 2013 19:22:28 +0000
(19:22 +0000)
committer
Matt Arsenault
<Matthew.Arsenault@amd.com>
Sat, 27 Jul 2013 19:22:28 +0000
(19:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187309
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/DataLayout.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/DataLayout.cpp
b/lib/IR/DataLayout.cpp
index
d1096d7
..
d786d33
100644
(file)
--- a/
lib/IR/DataLayout.cpp
+++ b/
lib/IR/DataLayout.cpp
@@
-514,8
+514,7
@@
unsigned DataLayout::getPointerTypeSizeInBits(Type *Ty) const {
if (Ty->isPointerTy())
return getTypeSizeInBits(Ty);
- Type *EleTy = cast<VectorType>(Ty)->getElementType();
- return getTypeSizeInBits(EleTy);
+ return getTypeSizeInBits(Ty->getScalarType());
}
/*!