diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-11 06:17:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-11 06:17:44 +0000 |
commit | 6739a891173474b3f295234b2a55c65d7f05e868 (patch) | |
tree | c782e759e5291476ba6572f45ef19ba3ca551973 /llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
parent | ea31737fefd6d8bbbc54573e6b3957c1a64dc65d (diff) | |
download | bcm5719-llvm-6739a891173474b3f295234b2a55c65d7f05e868.tar.gz bcm5719-llvm-6739a891173474b3f295234b2a55c65d7f05e868.zip |
Fixes for Microsoft Visual Studio 2010, from Steven Watanabe!
llvm-svn: 103457
Diffstat (limited to 'llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index a769a3603eb..13f0a28141d 100644 --- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/llvm/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. |