зеркало из https://github.com/microsoft/clang-1.git
Add some assertions to appease the static analyzer.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
454d5b3ab3
Коммит
62bbe07f5a
|
@ -939,9 +939,8 @@ void RewriteModernObjC::RewritePropertyImplDecl(ObjCPropertyImplDecl *PID,
|
|||
// Generate the 'getter' function.
|
||||
ObjCPropertyDecl *PD = PID->getPropertyDecl();
|
||||
ObjCIvarDecl *OID = PID->getPropertyIvarDecl();
|
||||
assert(IMD && OID && "Synthesized ivars must be attached to @implementation");
|
||||
|
||||
if (!OID)
|
||||
return;
|
||||
unsigned Attributes = PD->getPropertyAttributes();
|
||||
if (mustSynthesizeSetterGetterMethod(IMD, PD, true /*getter*/)) {
|
||||
bool GenGetProperty = !(Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) &&
|
||||
|
|
|
@ -3807,6 +3807,7 @@ bool Sema::GatherArgumentsForCall(SourceLocation CallLoc,
|
|||
|
||||
Arg = ArgE.takeAs<Expr>();
|
||||
} else {
|
||||
assert(FDecl && "can't use default arguments without a known callee");
|
||||
Param = FDecl->getParamDecl(i);
|
||||
|
||||
ExprResult ArgExpr =
|
||||
|
|
Загрузка…
Ссылка в новой задаче