From: Anders Carlsson Date: Mon, 29 Oct 2007 05:58:43 +0000 (+0000) Subject: Fix logic error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17df57d6d324d2d90df3038792db17c17728f273;p=clang 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 61e2dbea06..87de905a27 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -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; }