[cfe-commits] r132666 - in /cfe/trunk: include/clang/Sema/Initialization.h lib/Sema/SemaInit.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Sun Jun 5 06:59:05 PDT 2011
Author: cornedbee
Date: Sun Jun 5 08:59:05 2011
New Revision: 132666
URL: http://llvm.org/viewvc/llvm-project?rev=132666&view=rev
Log:
Remove more references to FailedSequence.
Modified:
cfe/trunk/include/clang/Sema/Initialization.h
cfe/trunk/lib/Sema/SemaInit.cpp
Modified: cfe/trunk/include/clang/Sema/Initialization.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Initialization.h?rev=132666&r1=132665&r2=132666&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Initialization.h (original)
+++ cfe/trunk/include/clang/Sema/Initialization.h Sun Jun 5 08:59:05 2011
@@ -825,7 +825,7 @@
/// \brief Determine why initialization failed.
FailureKind getFailureKind() const {
- assert(getKind() == FailedSequence && "Not an initialization failure!");
+ assert(Failed() && "Not an initialization failure!");
return Failure;
}
Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=132666&r1=132665&r2=132666&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Sun Jun 5 08:59:05 2011
@@ -2137,7 +2137,7 @@
}
bool InitializationSequence::isAmbiguous() const {
- if (getKind() != FailedSequence)
+ if (!Failed())
return false;
switch (getFailureKind()) {
@@ -3650,7 +3650,7 @@
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 @@
const InitializedEntity &Entity,
const InitializationKind &Kind,
Expr **Args, unsigned NumArgs) {
- if (SequenceKind != FailedSequence)
+ if (!Failed())
return false;
QualType DestType = Entity.getType();
More information about the cfe-commits
mailing list