diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-06-05 12:23:28 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-06-05 12:23:28 +0000 |
commit | c7ca58751261239817c7e90590549a5039ef37b9 (patch) | |
tree | f4d4038f30348e9c7c11322cbcb285e69a6e129f /clang/lib/Sema/SemaStmt.cpp | |
parent | f08872fb29135cb43bfcfa90c440cd54297aec72 (diff) | |
download | bcm5719-llvm-c7ca58751261239817c7e90590549a5039ef37b9.tar.gz bcm5719-llvm-c7ca58751261239817c7e90590549a5039ef37b9.zip |
Remove all references to InitializationSequence::FailedSequence from outside SemaInit.cpp. Replace them with the boolean conversion or the new Failed() function. This is a first step towards removing InitializationSequence::SequenceKind. No functionality change.
llvm-svn: 132664
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index d3a22cdbb98..d4fc980e228 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -1531,12 +1531,11 @@ Sema::PerformMoveOrCopyInitialization(const InitializedEntity &Entity, // parameter of the selected constructor is not an rvalue reference // to the object's type (possibly cv-qualified), overload resolution // is performed again, considering the object as an lvalue. - if (Seq.getKind() != InitializationSequence::FailedSequence) { + if (Seq) { for (InitializationSequence::step_iterator Step = Seq.step_begin(), StepEnd = Seq.step_end(); Step != StepEnd; ++Step) { - if (Step->Kind - != InitializationSequence::SK_ConstructorInitialization) + if (Step->Kind != InitializationSequence::SK_ConstructorInitialization) continue; CXXConstructorDecl *Constructor |