]> granicus.if.org Git - clang/commitdiff
remove some extraneous qualifiers.
authorChris Lattner <sabre@nondot.org>
Tue, 20 Apr 2010 17:13:14 +0000 (17:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Apr 2010 17:13:14 +0000 (17:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101912 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index c9aff6408fa940c7e2178cfe2a56fd0303ca1c03..a80d50a5070bbcff87f3491a27a26e811eaf39c9 100644 (file)
@@ -1198,8 +1198,8 @@ bool IntExprEvaluator::VisitBinaryOperator(const BinaryOperator *E) {
       }
 
       if (E->getOpcode() == BinaryOperator::Sub) {
-        const QualType Type = E->getLHS()->getType();
-        const QualType ElementType = Type->getAs<PointerType>()->getPointeeType();
+        QualType Type = E->getLHS()->getType();
+        QualType ElementType = Type->getAs<PointerType>()->getPointeeType();
 
         CharUnits ElementSize = CharUnits::One();
         if (!ElementType->isVoidType() && !ElementType->isFunctionType())