From f4c7371fb1d3cebcfb40abad4537bb82515704ea Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 19 Jan 2011 06:33:43 +0000 Subject: Change QualType::getTypePtr() to return a const pointer, then change a thousand other things which were (generally inadvertantly) relying on that. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123814 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExprScalar.cpp') diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 0a192457a4..a648b9c6b3 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -2065,8 +2065,7 @@ Value *ScalarExprEmitter::EmitCompare(const BinaryOperator *E,unsigned UICmpOpc, *SecondVecArg = RHS; QualType ElTy = LHSTy->getAs()->getElementType(); - Type *Ty = CGF.getContext().getCanonicalType(ElTy).getTypePtr(); - const BuiltinType *BTy = dyn_cast(Ty); + const BuiltinType *BTy = ElTy->getAs(); BuiltinType::Kind ElementKind = BTy->getKind(); switch(E->getOpcode()) { -- cgit v1.2.3