mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Fixes for Microsoft Visual Studio 2010, from Steven Watanabe!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -861,7 +861,7 @@ void PromoteMem2Reg::PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info,
|
||||
// Find the nearest store that has a lower than this load.
|
||||
StoresByIndexTy::iterator I =
|
||||
std::lower_bound(StoresByIndex.begin(), StoresByIndex.end(),
|
||||
std::pair<unsigned, StoreInst*>(LoadIdx, 0),
|
||||
std::pair<unsigned, StoreInst*>(LoadIdx, static_cast<StoreInst*>(0)),
|
||||
StoreIndexSearchPredicate());
|
||||
|
||||
// If there is no store before this load, then we can't promote this load.
|
||||
|
Reference in New Issue
Block a user