diff options
author | Duncan Sands <baldrick@free.fr> | 2009-08-17 14:33:27 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-08-17 14:33:27 +0000 |
commit | c4ce58d8fee74ebea0ed3dbe563fee933226a3c9 (patch) | |
tree | aabcd043da022fe81559e2a702c10ca5b3358b1c /llvm/lib/CompilerDriver | |
parent | b562444cf881ab1850faa1bef1866cd09e30a6d7 (diff) | |
download | bcm5719-llvm-c4ce58d8fee74ebea0ed3dbe563fee933226a3c9.tar.gz bcm5719-llvm-c4ce58d8fee74ebea0ed3dbe563fee933226a3c9.zip |
Don't access the first element of a potentially empty
vector (&Formals[0]). With this change llvm-gcc builds
with expensive checking enabled for C, C++ and Fortran.
While there, change a std::vector into a SmallVector.
This is partly gratuitous, but mostly because not all
STL vector implementations define the data method (and
it should be faster).
llvm-svn: 79237
Diffstat (limited to 'llvm/lib/CompilerDriver')
0 files changed, 0 insertions, 0 deletions