llvm-6502/lib/Transforms/IPO
Duncan Sands fa6a1cf1ed 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
2009-08-17 14:33:27 +00:00
..
ArgumentPromotion.cpp Make TargetData optional in GlobalOpt and ArgumentPromotion. 2009-08-14 00:11:03 +00:00
CMakeLists.txt Update CMake files. 2009-07-21 17:43:20 +00:00
ConstantMerge.cpp Add the private linkage. 2009-01-15 20:18:42 +00:00
DeadArgumentElimination.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
DeadTypeElimination.cpp Get rid of the Pass+Context magic. 2009-07-22 00:24:57 +00:00
ExtractGV.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
FunctionAttrs.cpp Fix PR3754: don't mark functions that wrap MallocInst with 2009-05-06 08:42:00 +00:00
GlobalDCE.cpp Remove dead metadata. 2009-08-11 06:31:57 +00:00
GlobalOpt.cpp Don't access the first element of a potentially empty 2009-08-17 14:33:27 +00:00
IndMemRemoval.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
InlineAlways.cpp Adjustments to last patch based on review. 2009-01-09 01:30:11 +00:00
Inliner.cpp - Convert the rest of the DOUTs to DEBUG+errs(). 2009-07-31 19:52:24 +00:00
InlineSimple.cpp Adjustments to last patch based on review. 2009-01-09 01:30:11 +00:00
Internalize.cpp More migration to raw_ostream, the water has dried up around the iostream hole. 2009-07-25 00:23:56 +00:00
IPConstantPropagation.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
IPO.cpp add a bunch more passes to the C bindings (PR3734), patch by 2009-03-06 16:52:18 +00:00
LoopExtractor.cpp Tidy up several unbeseeming casts from pointer to intptr_t. 2008-09-04 17:05:41 +00:00
LowerSetJmp.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
Makefile Removed trailing whitespace from Makefiles. 2009-01-09 16:44:42 +00:00
MergeFunctions.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
PartialInlining.cpp Get rid of the Pass+Context magic. 2009-07-22 00:24:57 +00:00
PartialSpecialization.cpp Get rid of the Pass+Context magic. 2009-07-22 00:24:57 +00:00
PruneEH.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
RaiseAllocations.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
StripDeadPrototypes.cpp Get rid of the Pass+Context magic. 2009-07-22 00:24:57 +00:00
StripSymbols.cpp Fix a bunch of namespace pollution. 2009-08-07 01:32:21 +00:00
StructRetPromotion.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00