diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-04 22:46:59 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-04 22:46:59 +0000 |
commit | 50fba8f0a9cccf38c64c312a40f1134490ab9fc3 (patch) | |
tree | 1df2573b75dc6214f71c1a8a1ba599c0b45b0909 /clang/lib | |
parent | 47d988c54c8cac52c41917bcbf52f9bc244adf76 (diff) | |
download | bcm5719-llvm-50fba8f0a9cccf38c64c312a40f1134490ab9fc3.tar.gz bcm5719-llvm-50fba8f0a9cccf38c64c312a40f1134490ab9fc3.zip |
PR13022: cope with parenthesized function types in MS name mangling.
llvm-svn: 157959
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<FunctionProtoType>(FD->getType()); + const FunctionProtoType *FT = FD->getType()->castAs<FunctionProtoType>(); bool InStructor = false, InInstMethod = false; const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD); |