]> granicus.if.org Git - clang/commit
fix a valgrind problem I noticed while developing another patch,
authorChris Lattner <sabre@nondot.org>
Sun, 12 Apr 2009 20:51:10 +0000 (20:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Apr 2009 20:51:10 +0000 (20:51 +0000)
commit5186872629d6c9a48433bafe62dc06975bbbf7af
tree39d294304140b3a2194713b59d6de7a421e1a2e3
parentc199ab3ea1381e8e9cdd720eb87bb4f65cdf5086
fix a valgrind problem I noticed while developing another patch,
if a decl is invalid, it isn't added to the Decls array, so we
need to pass in Decls.size() to avoid reading uninit memory.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68913 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/decl-invalid.c