mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-02 16:21:36 +00:00
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:
parent
70972bb5cd
commit
fdbef823ad
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user