forked from OSchip/llvm-project
Remove more references to FailedSequence.
llvm-svn: 132666
This commit is contained in:
parent
32208bde75
commit
724bfe18b7
|
@ -825,7 +825,7 @@ public:
|
|||
|
||||
/// \brief Determine why initialization failed.
|
||||
FailureKind getFailureKind() const {
|
||||
assert(getKind() == FailedSequence && "Not an initialization failure!");
|
||||
assert(Failed() && "Not an initialization failure!");
|
||||
return Failure;
|
||||
}
|
||||
|
||||
|
|
|
@ -2137,7 +2137,7 @@ bool InitializationSequence::isDirectReferenceBinding() const {
|
|||
}
|
||||
|
||||
bool InitializationSequence::isAmbiguous() const {
|
||||
if (getKind() != FailedSequence)
|
||||
if (!Failed())
|
||||
return false;
|
||||
|
||||
switch (getFailureKind()) {
|
||||
|
@ -3650,7 +3650,7 @@ InitializationSequence::Perform(Sema &S,
|
|||
const InitializationKind &Kind,
|
||||
MultiExprArg Args,
|
||||
QualType *ResultType) {
|
||||
if (SequenceKind == FailedSequence) {
|
||||
if (Failed()) {
|
||||
unsigned NumArgs = Args.size();
|
||||
Diagnose(S, Entity, Kind, (Expr **)Args.release(), NumArgs);
|
||||
return ExprError();
|
||||
|
@ -4216,7 +4216,7 @@ bool InitializationSequence::Diagnose(Sema &S,
|
|||
const InitializedEntity &Entity,
|
||||
const InitializationKind &Kind,
|
||||
Expr **Args, unsigned NumArgs) {
|
||||
if (SequenceKind != FailedSequence)
|
||||
if (!Failed())
|
||||
return false;
|
||||
|
||||
QualType DestType = Entity.getType();
|
||||
|
|
Loading…
Reference in New Issue