summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-20 22:12:02 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-20 22:12:02 +0000
commit3f4f03a23553bc90c92c9e20bbff711623504767 (patch)
treedfeab89711b07a7e38f409e050a67d44c80e389e /clang/lib/Sema/SemaInit.h
parent6232d347bc1d9b1e04bb06be15abe5e686d296ba (diff)
downloadbcm5719-llvm-3f4f03a23553bc90c92c9e20bbff711623504767.tar.gz
bcm5719-llvm-3f4f03a23553bc90c92c9e20bbff711623504767.zip
Add a new failure kind, FK_Incomplete, to InitializationSequence, to
capture failures when we try to initialize an incomplete type. Previously, we would (ab)use FK_ConversionFailed, then occasionally dereference a null pointer when trying to diagnose the failure. Fixes <rdar://problem/7959007>. llvm-svn: 104286
Diffstat (limited to 'clang/lib/Sema/SemaInit.h')
-rw-r--r--clang/lib/Sema/SemaInit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.h b/clang/lib/Sema/SemaInit.h
index 35adf9e49ee..a9064ede6d3 100644
--- a/clang/lib/Sema/SemaInit.h
+++ b/clang/lib/Sema/SemaInit.h
@@ -544,7 +544,9 @@ public:
/// \brief Overloaded for initialization by constructor failed.
FK_ConstructorOverloadFailed,
/// \brief Default-initialization of a 'const' object.
- FK_DefaultInitOfConst
+ FK_DefaultInitOfConst,
+ /// \brief Initialization of an incomplete type.
+ FK_Incomplete
};
private:
OpenPOWER on IntegriCloud