diff options
author | Anders Carlsson <andersca@mac.com> | 2008-08-23 18:49:32 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-08-23 18:49:32 +0000 |
commit | 15425f9d2d92e2a5f99b09b8e2fc00025631e593 (patch) | |
tree | d9bfedee5032868e2f4ab012f8ebc8255180deb2 /lib/AST/Expr.cpp | |
parent | be38d0274d0836f31ddeaee6789433b99a5a0c9c (diff) |
Handle AddrLabelExprs in Expr::isConstantExpr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 9085d2cc0d..a01832f2ee 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -556,6 +556,7 @@ bool Expr::isConstantExpr(ASTContext &Ctx, SourceLocation *Loc) const { case ImaginaryLiteralClass: case TypesCompatibleExprClass: case CXXBoolLiteralExprClass: + case AddrLabelExprClass: return true; case CallExprClass: { const CallExpr *CE = cast<CallExpr>(this); |