aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-21 23:02:22 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-21 23:02:22 +0000
commit21f77cd0c3da8a1dbaf6245cae43baf4c0b80ea4 (patch)
treeab976f59e38e50aadc2746638e9d2ed659d80442 /include/clang
parent227e483cb1f77ea6dcd38c2ca9fb490894a5f887 (diff)
Don't try to set the "array filler" in a InitListExpr twice.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/AST/Expr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index 9dda1e72da..e7b1a0593f 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -3400,6 +3400,10 @@ public:
}
void setArrayFiller(Expr *filler);
+ /// \brief Return true if this is an array initializer and its array "filler"
+ /// has been set.
+ bool hasArrayFiller() const { return getArrayFiller(); }
+
/// \brief If this initializes a union, specifies which field in the
/// union to initialize.
///