diff options
author | Anders Carlsson <andersca@mac.com> | 2009-11-06 02:50:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-11-06 02:50:19 +0000 |
commit | a7694087e4abaea261918ffbb3ffe38feb1da489 (patch) | |
tree | af8a55737fc14229bada95c534d6541eb3e5d4a4 /lib/CodeGen/Mangle.cpp | |
parent | 33c530e33a2232e8d6089f4a3028e6b8c3e2b746 (diff) |
Handle ParenExprs in mangleExpression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r-- | lib/CodeGen/Mangle.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index a5b3452796..11bbaae018 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -1015,6 +1015,11 @@ void CXXNameMangler::mangleExpression(const Expr *E) { // ::= <expr-primary> switch (E->getStmtClass()) { default: assert(false && "Unhandled expression kind!"); + + case Expr::ParenExprClass: + mangleExpression(cast<ParenExpr>(E)->getSubExpr()); + break; + case Expr::DeclRefExprClass: { const Decl *D = cast<DeclRefExpr>(E)->getDecl(); |