]> granicus.if.org Git - clang/commit
Reclaim memory allocated for ParmVarDecl's in FunctionDecl::Destroy.
authorTed Kremenek <kremenek@apple.com>
Tue, 20 May 2008 03:56:00 +0000 (03:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 20 May 2008 03:56:00 +0000 (03:56 +0000)
commitb65cf41707d190d5ce3d48b9e5bd2dc9d7b4a4c0
tree71f9004f00c463cdbc31c970480efea9a92f12c2
parent3bbc1989a38cada2f3ae92a43eb311bf341eeddf
Reclaim memory allocated for ParmVarDecl's in FunctionDecl::Destroy.

Fixed a bug in ParmVarDecl::param_end(): Handle the case where there are no
ParmVarDecls for a FunctionDecl, but its function prototype has formal arguments
(can happen with typedefs).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51297 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp