This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Yes, you're right. I got too deep into looking at just what was visible in the preprocessed code (c-common I think) and didn't look at calculate_allocation from vec.c.
But those cases are passing 1 to vec_safe_reserve, which in turn passes 1 to calculate_allocation, so calculate_allocation can not return 0, so vec_reserve can not return NULL.
At least that is how it seems to me.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |