From d84d35ba70296aca01d3c48ab9088b0515619fd9 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 15 Feb 2007 02:26:10 +0000 Subject: For PR1195: Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. llvm-svn: 34293 --- llvm/lib/Analysis/ConstantFolding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Analysis/ConstantFolding.cpp') diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 6fd8ff8b563..01aedda6353 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -283,10 +283,10 @@ Constant *llvm::ConstantFoldLoadThroughGEPConstantExpr(Constant *C, C = UndefValue::get(ATy->getElementType()); else return 0; - } else if (const PackedType *PTy = dyn_cast(*I)) { + } else if (const VectorType *PTy = dyn_cast(*I)) { if (CI->getZExtValue() >= PTy->getNumElements()) return 0; - if (ConstantPacked *CP = dyn_cast(C)) + if (ConstantVector *CP = dyn_cast(C)) C = CP->getOperand(CI->getZExtValue()); else if (isa(C)) C = Constant::getNullValue(PTy->getElementType()); -- cgit v1.2.3