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:
baaaa67
)
Sema: It's cheaper to ask LookupResult::empty than to calculate linkage
author
David Majnemer
<david.majnemer@gmail.com>
Wed, 14 Jan 2015 08:08:52 +0000
(08:08 +0000)
committer
David Majnemer
<david.majnemer@gmail.com>
Wed, 14 Jan 2015 08:08:52 +0000
(08:08 +0000)
llvm-svn: 225960
clang/lib/Sema/SemaDecl.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaDecl.cpp
b/clang/lib/Sema/SemaDecl.cpp
index
b967e17
..
0074703
100644
(file)
--- a/
clang/lib/Sema/SemaDecl.cpp
+++ b/
clang/lib/Sema/SemaDecl.cpp
@@
-8059,7
+8059,7
@@
bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD,
// the function returns a UDT (class, struct, or union type) that is not C
// compatible, and if it does, warn the user.
// But, issue any diagnostic on the first declaration only.
- if (
NewFD->isExternC() && Previous.empty
()) {
+ if (
Previous.empty() && NewFD->isExternC
()) {
QualType R = NewFD->getReturnType();
if (R->isIncompleteType() && !R->isVoidType())
Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete)