forked from OSchip/llvm-project
parent
dd19c0114d
commit
8a9cc4fe28
|
@ -463,7 +463,6 @@ void CodeGenFunction::EmitScalarInit(const Expr *init,
|
||||||
const ValueDecl *D,
|
const ValueDecl *D,
|
||||||
LValue lvalue,
|
LValue lvalue,
|
||||||
bool capturedByInit) {
|
bool capturedByInit) {
|
||||||
QualType type = lvalue.getType();
|
|
||||||
Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime();
|
Qualifiers::ObjCLifetime lifetime = lvalue.getObjCLifetime();
|
||||||
if (!lifetime) {
|
if (!lifetime) {
|
||||||
llvm::Value *value = EmitScalarExpr(init);
|
llvm::Value *value = EmitScalarExpr(init);
|
||||||
|
|
|
@ -2111,7 +2111,6 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E,
|
||||||
// Automatic Reference Counting:
|
// Automatic Reference Counting:
|
||||||
// If the pseudo-expression names a retainable object with weak or
|
// If the pseudo-expression names a retainable object with weak or
|
||||||
// strong lifetime, the object shall be released.
|
// strong lifetime, the object shall be released.
|
||||||
bool isNonGC = false;
|
|
||||||
Expr *BaseExpr = PseudoDtor->getBase();
|
Expr *BaseExpr = PseudoDtor->getBase();
|
||||||
llvm::Value *BaseValue = NULL;
|
llvm::Value *BaseValue = NULL;
|
||||||
Qualifiers BaseQuals;
|
Qualifiers BaseQuals;
|
||||||
|
@ -2123,8 +2122,6 @@ RValue CodeGenFunction::EmitCallExpr(const CallExpr *E,
|
||||||
BaseQuals = PTy->getPointeeType().getQualifiers();
|
BaseQuals = PTy->getPointeeType().getQualifiers();
|
||||||
} else {
|
} else {
|
||||||
LValue BaseLV = EmitLValue(BaseExpr);
|
LValue BaseLV = EmitLValue(BaseExpr);
|
||||||
if (BaseLV.isNonGC())
|
|
||||||
isNonGC = true;
|
|
||||||
BaseValue = BaseLV.getAddress();
|
BaseValue = BaseLV.getAddress();
|
||||||
QualType BaseTy = BaseExpr->getType();
|
QualType BaseTy = BaseExpr->getType();
|
||||||
BaseQuals = BaseTy.getQualifiers();
|
BaseQuals = BaseTy.getQualifiers();
|
||||||
|
|
|
@ -2226,8 +2226,6 @@ static llvm::Value *emitARCRetainAfterCall(CodeGenFunction &CGF,
|
||||||
|
|
||||||
static TryEmitResult
|
static TryEmitResult
|
||||||
tryEmitARCRetainScalarExpr(CodeGenFunction &CGF, const Expr *e) {
|
tryEmitARCRetainScalarExpr(CodeGenFunction &CGF, const Expr *e) {
|
||||||
QualType originalType = e->getType();
|
|
||||||
|
|
||||||
// The desired result type, if it differs from the type of the
|
// The desired result type, if it differs from the type of the
|
||||||
// ultimate opaque expression.
|
// ultimate opaque expression.
|
||||||
const llvm::Type *resultType = 0;
|
const llvm::Type *resultType = 0;
|
||||||
|
|
|
@ -864,7 +864,6 @@ Decl *Parser::ParseObjCMethodDecl(SourceLocation mLoc,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now parse the selector.
|
// Now parse the selector.
|
||||||
SourceLocation SelectorStartLoc = Tok.getLocation();
|
|
||||||
SourceLocation selLoc;
|
SourceLocation selLoc;
|
||||||
IdentifierInfo *SelIdent = ParseObjCSelectorPiece(selLoc);
|
IdentifierInfo *SelIdent = ParseObjCSelectorPiece(selLoc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue