]> granicus.if.org Git - clang/commitdiff
Fix logic error.
authorAnders Carlsson <andersca@mac.com>
Mon, 29 Oct 2007 05:58:43 +0000 (05:58 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 29 Oct 2007 05:58:43 +0000 (05:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43443 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index 61e2dbea069e898afa3f1b6157e92178287cc7e3..87de905a276a16f183c95374c1dc79924c92f850 100644 (file)
@@ -912,7 +912,7 @@ void ASTContext::getObjcEncodingForType(QualType T, std::string& S) const
     if (PointeeTy->isCharType()) {
       // char pointer types should be encoded as '*' unless it is a
       // type that has been typedef'd to 'BOOL'.
-      if (isTypeTypedefedAsBOOL(T)) {
+      if (!isTypeTypedefedAsBOOL(T)) {
         S += '*';
         return;
       }