diff options
| author | Douglas Gregor <doug.gregor@gmail.com> | 2010-05-11 06:17:44 +0000 |
|---|---|---|
| committer | Douglas Gregor <doug.gregor@gmail.com> | 2010-05-11 06:17:44 +0000 |
| commit | 491363c2ba41b17b9e3698918beaea8f5bf9d024 (patch) | |
| tree | a4571e1049d2174868e79f76d46f5c73da97654e /lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
| parent | 66c2c93df8e6f2b2926dd3ce8b087eb4355ded8b (diff) | |
| download | external_llvm-491363c2ba41b17b9e3698918beaea8f5bf9d024.zip external_llvm-491363c2ba41b17b9e3698918beaea8f5bf9d024.tar.gz external_llvm-491363c2ba41b17b9e3698918beaea8f5bf9d024.tar.bz2 | |
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
Diffstat (limited to 'lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
| -rw-r--r-- | lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index a769a36..13f0a28 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -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. |
