diff options
author | John McCall <rjmccall@apple.com> | 2011-01-19 06:33:43 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-01-19 06:33:43 +0000 |
commit | 424cec97bdff219cd976dce85a405140069c57f9 (patch) | |
tree | 2398a9d0ab79460797b9e343d9e163f6b2b15a13 /clang/lib/AST/ItaniumMangle.cpp | |
parent | 0c49533039cba8214ada637dd313f54c6a5a8364 (diff) | |
download | bcm5719-llvm-424cec97bdff219cd976dce85a405140069c57f9.tar.gz bcm5719-llvm-424cec97bdff219cd976dce85a405140069c57f9.zip |
Change QualType::getTypePtr() to return a const pointer, then change a
thousand other things which were (generally inadvertantly) relying on that.
llvm-svn: 123814
Diffstat (limited to 'clang/lib/AST/ItaniumMangle.cpp')
-rw-r--r-- | clang/lib/AST/ItaniumMangle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp index 15cd7f7f8d8..af9e35bbfcd 100644 --- a/clang/lib/AST/ItaniumMangle.cpp +++ b/clang/lib/AST/ItaniumMangle.cpp @@ -381,7 +381,8 @@ void CXXNameMangler::mangleFunctionEncoding(const FunctionDecl *FD) { // Do the canonicalization out here because parameter types can // undergo additional canonicalization (e.g. array decay). - FunctionType *FT = cast<FunctionType>(Context.getASTContext() + const FunctionType *FT + = cast<FunctionType>(Context.getASTContext() .getCanonicalType(FD->getType())); mangleBareFunctionType(FT, MangleReturnType); |