projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
610a86e
)
fixes an objc crash involving objc bool literal on
author
Fariborz Jahanian
<fjahanian@apple.com>
Tue, 16 Oct 2012 16:21:20 +0000
(16:21 +0000)
committer
Fariborz Jahanian
<fjahanian@apple.com>
Tue, 16 Oct 2012 16:21:20 +0000
(16:21 +0000)
hopelessly poorly written code after spewing several
errors. // rdar://
12491143
llvm-svn: 166025
clang/lib/Sema/SemaExpr.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaExpr.cpp
b/clang/lib/Sema/SemaExpr.cpp
index
3d66baa
..
02eac11
100644
(file)
--- a/
clang/lib/Sema/SemaExpr.cpp
+++ b/
clang/lib/Sema/SemaExpr.cpp
@@
-11917,7
+11917,7
@@
Sema::ActOnObjCBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) {
if (!Context.getBOOLDecl()) {
LookupResult Result(*this, &Context.Idents.get("BOOL"), SourceLocation(),
Sema::LookupOrdinaryName);
- if (LookupName(Result, getCurScope())) {
+ if (LookupName(Result, getCurScope())
&& Result.isSingleResult()
) {
NamedDecl *ND = Result.getFoundDecl();
if (TypedefDecl *TD = dyn_cast<TypedefDecl>(ND))
Context.setBOOLDecl(TD);