summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprClassification.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-09-12 00:56:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-09-12 00:56:43 +0000
commitb15fe3a5e4be26e25abf375b2b341f1e3f7b53cd (patch)
tree959bc5b06c67c3474d06cbdaf96a7496c12dce90 /clang/lib/AST/ExprClassification.cpp
parentb28179bb80a93d5276e6d270d0d74c3f2d0e2b20 (diff)
downloadbcm5719-llvm-b15fe3a5e4be26e25abf375b2b341f1e3f7b53cd.tar.gz
bcm5719-llvm-b15fe3a5e4be26e25abf375b2b341f1e3f7b53cd.zip
PR13811: Add a FunctionParmPackExpr node to handle references to function
parameter packs where the reference is not being expanded but the pack has been. Previously, Clang would segfault in such cases. llvm-svn: 163672
Diffstat (limited to 'clang/lib/AST/ExprClassification.cpp')
-rw-r--r--clang/lib/AST/ExprClassification.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp
index f16d70b5da1..24ec6bb0207 100644
--- a/clang/lib/AST/ExprClassification.cpp
+++ b/clang/lib/AST/ExprClassification.cpp
@@ -134,6 +134,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) {
// ObjC instance variables are lvalues
// FIXME: ObjC++0x might have different rules
case Expr::ObjCIvarRefExprClass:
+ case Expr::FunctionParmPackExprClass:
return Cl::CL_LValue;
// C99 6.5.2.5p5 says that compound literals are lvalues.
OpenPOWER on IntegriCloud