summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-01-19 06:33:43 +0000
committerJohn McCall <rjmccall@apple.com>2011-01-19 06:33:43 +0000
commitf4c7371fb1d3cebcfb40abad4537bb82515704ea (patch)
tree1ef9169970f5c94e0694b1b1b1c6d9acffc96c74 /lib/CodeGen/CGExprScalar.cpp
parentf7e22d86167a9fbb42c5ab5b349a34d123a2e2b5 (diff)
downloadclang-f4c7371fb1d3cebcfb40abad4537bb82515704ea.tar.gz
clang-f4c7371fb1d3cebcfb40abad4537bb82515704ea.tar.bz2
clang-f4c7371fb1d3cebcfb40abad4537bb82515704ea.tar.xz
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
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp3
1 files changed, 1 insertions, 2 deletions
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<VectorType>()->getElementType();
- Type *Ty = CGF.getContext().getCanonicalType(ElTy).getTypePtr();
- const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty);
+ const BuiltinType *BTy = ElTy->getAs<BuiltinType>();
BuiltinType::Kind ElementKind = BTy->getKind();
switch(E->getOpcode()) {