diff options
| author | Dan Gohman <gohman@apple.com> | 2010-06-05 00:47:34 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-06-05 00:47:34 +0000 |
| commit | 520913cf9e4c77bf160ac366174aa53582076530 (patch) | |
| tree | fe3b1e5ae0e83ec8c567c38c01a0accdfb71c8ff /llvm/lib | |
| parent | 8c292adba491f862eee24f8aed3ddec98c87409c (diff) | |
| download | bcm5719-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.cpp | 2 |
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; |

