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/SemaDeclCXX.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/SemaDeclCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 2fd4cf58cad..18a73666b38 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -3350,7 +3350,7 @@ bool Sema::ShouldDeleteDefaultConstructor(CXXConstructorDecl *CD) { InitializationSequence InitSeq(*this, BaseEntity, Kind, 0, 0); - if (InitSeq.getKind() == InitializationSequence::FailedSequence) + if (InitSeq.Failed()) return true; } @@ -3380,7 +3380,7 @@ bool Sema::ShouldDeleteDefaultConstructor(CXXConstructorDecl *CD) { InitializationSequence InitSeq(*this, BaseEntity, Kind, 0, 0); - if (InitSeq.getKind() == InitializationSequence::FailedSequence) + if (InitSeq.Failed()) return true; } @@ -3462,7 +3462,7 @@ bool Sema::ShouldDeleteDefaultConstructor(CXXConstructorDecl *CD) { InitializationSequence InitSeq(*this, MemberEntity, Kind, 0, 0); - if (InitSeq.getKind() == InitializationSequence::FailedSequence) + if (InitSeq.Failed()) return true; } @@ -3537,7 +3537,7 @@ bool Sema::ShouldDeleteCopyConstructor(CXXConstructorDecl *CD) { InitializationSequence InitSeq(*this, BaseEntity, Kind, &Arg, 1); - if (InitSeq.getKind() == InitializationSequence::FailedSequence) + if (InitSeq.Failed()) return true; } @@ -3574,7 +3574,7 @@ bool Sema::ShouldDeleteCopyConstructor(CXXConstructorDecl *CD) { InitializationSequence InitSeq(*this, BaseEntity, Kind, &Arg, 1); - if (InitSeq.getKind() == InitializationSequence::FailedSequence) + if (InitSeq.Failed()) return true; } @@ -3651,7 +3651,7 @@ bool Sema::ShouldDeleteCopyConstructor(CXXConstructorDecl *CD) { InitializationSequence InitSeq(*this, Entities.back(), Kind, &Arg, 1); - if (InitSeq.getKind() == InitializationSequence::FailedSequence) + if (InitSeq.Failed()) return true; } |