summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-05 00:47:34 +0000
committerDan Gohman <gohman@apple.com>2010-06-05 00:47:34 +0000
commit520913cf9e4c77bf160ac366174aa53582076530 (patch)
treefe3b1e5ae0e83ec8c567c38c01a0accdfb71c8ff /llvm/lib
parent8c292adba491f862eee24f8aed3ddec98c87409c (diff)
downloadbcm5719-llvm-520913cf9e4c77bf160ac366174aa53582076530.tar.gz
bcm5719-llvm-520913cf9e4c77bf160ac366174aa53582076530.zip
getFoldedOffsetOf no longer does anything special with vector types.
llvm-svn: 105514
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/ConstantFold.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/ConstantFold.cpp b/llvm/lib/VMCore/ConstantFold.cpp
index 549977c2342..c854c852a95 100644
--- a/llvm/lib/VMCore/ConstantFold.cpp
+++ b/llvm/lib/VMCore/ConstantFold.cpp
@@ -658,7 +658,7 @@ Constant *llvm::ConstantFoldCastInstruction(unsigned opc, Constant *V,
}
}
// Handle an offsetof-like expression.
- if (Ty->isStructTy() || Ty->isArrayTy() || Ty->isVectorTy()){
+ if (Ty->isStructTy() || Ty->isArrayTy()) {
if (Constant *C = getFoldedOffsetOf(Ty, CE->getOperand(2),
DestTy, false))
return C;
OpenPOWER on IntegriCloud