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 | fdbef823ad58f4ddb96da61e59ca48d8390c928f (patch) | |
tree | 45cac31541fa419759a62462a025e2f6d246478c /lib/VMCore | |
parent | 70972bb5cd9ef1ae22555f53dccc7e3c5ea56cb0 (diff) | |
download | external_llvm-fdbef823ad58f4ddb96da61e59ca48d8390c928f.zip external_llvm-fdbef823ad58f4ddb96da61e59ca48d8390c928f.tar.gz external_llvm-fdbef823ad58f4ddb96da61e59ca48d8390c928f.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 549977c..c854c85 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/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; |