1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

getFoldedOffsetOf no longer does anything special with vector types.

llvm-svn: 105514
This commit is contained in:
Dan Gohman 2010-06-05 00:47:34 +00:00
parent a4614e30ec
commit eea56e5bd8

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;