forked from OSchip/llvm-project
Remove dead assignment to local variable.
llvm-svn: 153985
This commit is contained in:
parent
e7bff68a5e
commit
e69340c42c
|
@ -1176,7 +1176,6 @@ bool Sema::SemaBuiltinFPClassification(CallExpr *TheCall, unsigned NumArgs) {
|
|||
"promotion from float to double is the only expected cast here");
|
||||
Cast->setSubExpr(0);
|
||||
TheCall->setArg(NumArgs-1, CastArg);
|
||||
OrigArg = CastArg;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5776,7 +5776,6 @@ static bool TryNamespaceTypoCorrection(Sema &S, LookupResult &R, Scope *Sc,
|
|||
S.Diag(Corrected.getCorrectionDecl()->getLocation(),
|
||||
diag::note_namespace_defined_here) << CorrectedQuotedStr;
|
||||
|
||||
Ident = Corrected.getCorrectionAsIdentifierInfo();
|
||||
R.addDecl(Corrected.getCorrectionDecl());
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -3610,8 +3610,6 @@ Sema::ActOnCallExpr(Scope *S, Expr *Fn, SourceLocation LParenLoc,
|
|||
<< FixItHint::CreateRemoval(
|
||||
SourceRange(Args[0]->getLocStart(),
|
||||
Args[NumArgs-1]->getLocEnd()));
|
||||
|
||||
NumArgs = 0;
|
||||
}
|
||||
|
||||
return Owned(new (Context) CallExpr(Context, Fn, 0, 0, Context.VoidTy,
|
||||
|
|
|
@ -3350,7 +3350,6 @@ bool ASTReader::ParseLanguageOptions(
|
|||
unsigned Length = Record[Idx++];
|
||||
LangOpts.CurrentModule.assign(Record.begin() + Idx,
|
||||
Record.begin() + Idx + Length);
|
||||
Idx += Length;
|
||||
return Listener->ReadLanguageOptions(LangOpts);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue