Fix logic error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43443 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index 61e2dbe..87de905 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -912,7 +912,7 @@
     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;
       }