]> granicus.if.org Git - clang/commit
don't new[] an empty array when an AttributeList has
authorChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2009 06:25:12 +0000 (06:25 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2009 06:25:12 +0000 (06:25 +0000)
commit005b235fbc8449142befa81ec30e8e4c654182c5
treebcd8234f1efe9a770693ca82bab3d6adb5903f32
parente2f0e96e9b34ed7fb0d44f6b9288b9fcf5548ba3
don't new[] an empty array when an AttributeList has
zero expression arguments.  This eliminates 2579 1-byte
mallocs when parsing Cocoa.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65022 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/AttributeList.cpp