aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/regstrlcpy.c
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-06-08 11:44:30 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-06-08 11:44:30 +0000
commit4b63cfd2597782f6f561b71119d09a76ed823266 (patch)
treef1514d4f5ce92aa15f9fed424d52667db54d40c8 /lib/Support/regstrlcpy.c
parentaa833cbfda8d2d42b7e962aee5ce01090a4c551c (diff)
downloadexternal_llvm-4b63cfd2597782f6f561b71119d09a76ed823266.zip
external_llvm-4b63cfd2597782f6f561b71119d09a76ed823266.tar.gz
external_llvm-4b63cfd2597782f6f561b71119d09a76ed823266.tar.bz2
Use realloc instead of malloc+memcpy when growing a POD SmallVector. A smart
realloc implementation can try to expand the allocated memory block in-place, avoiding the copy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/regstrlcpy.c')
0 files changed, 0 insertions, 0 deletions