From 0834f13c95b536d63acb7d154d1860a32dc4fef5 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 12 Dec 2013 23:12:01 +0000 Subject: [-cxx-abi microsoft] Mangle reference temporaries They are mangled the same as normal references, nothing special is going on here. llvm-svn: 197184 --- clang/lib/AST/MicrosoftMangle.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'clang/lib/AST/MicrosoftMangle.cpp') diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 24eac84cdd2..a02571e8a0a 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -2040,10 +2040,9 @@ void MicrosoftMangleContextImpl::mangleCXXDtor(const CXXDestructorDecl *D, } void MicrosoftMangleContextImpl::mangleReferenceTemporary(const VarDecl *VD, - raw_ostream &) { - unsigned DiagID = getDiags().getCustomDiagID(DiagnosticsEngine::Error, - "cannot mangle this reference temporary yet"); - getDiags().Report(VD->getLocation(), DiagID); + raw_ostream &Out) { + MicrosoftCXXNameMangler mangler(*this, Out); + mangler.mangle(VD); } void MicrosoftMangleContextImpl::mangleStaticGuardVariable(const VarDecl *VD, -- cgit v1.2.3