]> granicus.if.org Git - clang/commitdiff
Silence Doug's favorite GCC warning.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 13 Jul 2010 17:07:17 +0000 (17:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 13 Jul 2010 17:07:17 +0000 (17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108247 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Type.cpp

index ab64eafbee217090880515a9939207ba0855869c..ebcf828ebf0e92b87fb6cdd4d78e4822e3b29a68 100644 (file)
@@ -1002,7 +1002,7 @@ QualType QualType::getCallResultType(ASTContext &Context) const {
   //
   // See also C99 6.3.2.1p2.
   if (!Context.getLangOptions().CPlusPlus ||
-      !getTypePtr()->isDependentType() && !getTypePtr()->isRecordType())
+      (!getTypePtr()->isDependentType() && !getTypePtr()->isRecordType()))
     return getUnqualifiedType();
   
   return *this;