getFoldedOffsetOf no longer does anything special with vector types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105514 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-06-05 00:47:34 +00:00
parent 70972bb5cd
commit fdbef823ad

View File

@ -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;