diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-03-26 06:57:13 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-03-26 06:57:13 +0000 |
| commit | f956b35f98910fd26a2fe62a34f62d885b904c0d (patch) | |
| tree | ba098ed1335565df609dea97b6447e2b960b29a8 /clang/lib/Sema | |
| parent | aaf8acfea1d436b747170f4871c3e48e5879422f (diff) | |
| download | bcm5719-llvm-f956b35f98910fd26a2fe62a34f62d885b904c0d.tar.gz bcm5719-llvm-f956b35f98910fd26a2fe62a34f62d885b904c0d.zip | |
Do not mark the destructor of a function parameter's type. Fixes PR6709.
llvm-svn: 99615
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 46aedfcb288..f2520fc5eb7 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -2254,10 +2254,6 @@ bool Sema::CheckParmsForFunctionDef(FunctionDecl *FD) { Diag(Param->getLocation(), diag::err_array_star_in_function_definition); } } - - if (getLangOptions().CPlusPlus) - if (const RecordType *RT = Param->getType()->getAs<RecordType>()) - FinalizeVarWithDestructor(Param, RT); } return HasInvalidParm; |

