summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-12 04:42:08 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-12 04:42:08 +0000
commit842806450cce0f822b2d475b9cfe40b4acf6f83b (patch)
tree62f11acf6ffc68580b864e8f34379be2b4fa23f0 /clang/lib/Sema/SemaDecl.cpp
parent52bfc2b66835525fbfa23f9ab224f0eb33f50892 (diff)
downloadbcm5719-llvm-842806450cce0f822b2d475b9cfe40b4acf6f83b.tar.gz
bcm5719-llvm-842806450cce0f822b2d475b9cfe40b4acf6f83b.zip
Centralize the getCanonicalType() calls in the Itanium C++ mangling
code so that they only occur in a single place. No functionality change. llvm-svn: 134961
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 886df5fc57e..49c3f8a48f1 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -6168,7 +6168,8 @@ ParmVarDecl *Sema::CheckParameter(DeclContext *DC, SourceLocation StartLoc,
}
ParmVarDecl *New = ParmVarDecl::Create(Context, DC, StartLoc, NameLoc, Name,
- adjustParameterType(T), TSInfo,
+ Context.getAdjustedParameterType(T),
+ TSInfo,
StorageClass, StorageClassAsWritten,
0);
OpenPOWER on IntegriCloud