From 8d69a2160e48b73a4515c9401e67971fb8c14e07 Mon Sep 17 00:00:00 2001 From: John McCall Date: Mon, 15 Nov 2010 23:31:06 +0000 Subject: Add a new expression kind, OpaqueValueExpr, which is useful for certain internal type-checking procedures as well as for representing certain implicitly-generated operations. Uses to follow. llvm-svn: 119289 --- clang/lib/CodeGen/Mangle.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/CodeGen') diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp index 1b7cfa1c8ce..83d43ebb8ff 100644 --- a/clang/lib/CodeGen/Mangle.cpp +++ b/clang/lib/CodeGen/Mangle.cpp @@ -1681,6 +1681,9 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity) { break; } + case Expr::OpaqueValueExprClass: + llvm_unreachable("cannot mangle opaque value; mangling wrong thing?"); + case Expr::CXXDefaultArgExprClass: mangleExpression(cast(E)->getExpr(), Arity); break; -- cgit v1.2.3