aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-08-17 14:33:27 +0000
committerDuncan Sands <baldrick@free.fr>2009-08-17 14:33:27 +0000
commitfa6a1cf1ed4282145269b12578f687b3869d6476 (patch)
tree0e96b83a73e5615ed24d1ca49d67c1b8133f4c5d /lib/Transforms/Scalar/IndVarSimplify.cpp
parentafc4940466b6d573fb3adbfe20fa8922f8255165 (diff)
downloadexternal_llvm-fa6a1cf1ed4282145269b12578f687b3869d6476.zip
external_llvm-fa6a1cf1ed4282145269b12578f687b3869d6476.tar.gz
external_llvm-fa6a1cf1ed4282145269b12578f687b3869d6476.tar.bz2
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
0 files changed, 0 insertions, 0 deletions