From 50fba8f0a9cccf38c64c312a40f1134490ab9fc3 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 4 Jun 2012 22:46:59 +0000 Subject: PR13022: cope with parenthesized function types in MS name mangling. llvm-svn: 157959 --- clang/lib/AST/MicrosoftMangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST/MicrosoftMangle.cpp') diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 7bcc2f384ac..59848817028 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -198,7 +198,7 @@ void MicrosoftCXXNameMangler::mangleFunctionEncoding(const FunctionDecl *FD) { // We should never ever see a FunctionNoProtoType at this point. // We don't even know how to mangle their types anyway :). - const FunctionProtoType *FT = cast(FD->getType()); + const FunctionProtoType *FT = FD->getType()->castAs(); bool InStructor = false, InInstMethod = false; const CXXMethodDecl *MD = dyn_cast(FD); -- cgit v1.2.3