From 6f615bc52bd5513019c32b378834a3c1b8425bf8 Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 17 Aug 2010 21:51:21 +0000 Subject: Whoops. Don't fall through into the overload case when mangling a dependent call expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111300 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/Mangle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/Mangle.cpp') diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index 7bdbabc8c0..969670a28d 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -1546,8 +1546,8 @@ void CXXNameMangler::mangleIntegerLiteral(QualType T, void CXXNameMangler::mangleCalledExpression(const Expr *E, unsigned Arity) { if (E->getType() != getASTContext().OverloadTy) - mangleExpression(E); - // propagate arity to dependent overloads? + return mangleExpression(E); + // FIXME: propagate arity to dependent overloads? llvm::PointerIntPair R = OverloadExpr::find(const_cast(E)); -- cgit v1.2.3-70-g09d2