From 17df57d6d324d2d90df3038792db17c17728f273 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 29 Oct 2007 05:58:43 +0000 Subject: [PATCH] Fix logic error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43443 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/ASTContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1