diff options
author | Anders Carlsson <andersca@mac.com> | 2007-10-29 05:58:43 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2007-10-29 05:58:43 +0000 |
commit | 17df57d6d324d2d90df3038792db17c17728f273 (patch) | |
tree | 959e970895f5bd3b23564ee9c0ad0aa4bb1ee383 | |
parent | 84d35ce5c32a51113913adc684c6d825020b03e9 (diff) |
Fix logic error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43443 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |