summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-03 21:11:43 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-03 21:11:43 +0000
commitfcded9b93a96e9a88405325b30caa4cd11120aee (patch)
treec06abf22140d0af2b7fe042a8be53f012ae1bb3e /clang/lib/Sema/SemaDecl.cpp
parent22bfa2c28bdbca09949ba4cf8670c310d3e42c71 (diff)
downloadbcm5719-llvm-fcded9b93a96e9a88405325b30caa4cd11120aee.tar.gz
bcm5719-llvm-fcded9b93a96e9a88405325b30caa4cd11120aee.zip
[objc] Emit warnings when the implementation of a designated initializer calls on
super an initializer that is not a designated one or any initializer on self. llvm-svn: 196317
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index c14cc4b8619..f243c0e8d18 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -9816,8 +9816,8 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body,
}
if (getCurFunction()->ObjCWarnForNoDesignatedInitChain) {
const ObjCMethodDecl *InitMethod = 0;
- bool isDesignated = MD->getClassInterface()
- ->isDesignatedInitializer(MD->getSelector(), &InitMethod);
+ bool isDesignated =
+ MD->isDesignatedInitializerForTheInterface(&InitMethod);
assert(isDesignated && InitMethod);
(void)isDesignated;
Diag(MD->getLocation(),
OpenPOWER on IntegriCloud