summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-01-11 09:59:27 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-01-11 09:59:27 +0000
commit41c409ce0d9934e1cf1271cc06c893578d57241c (patch)
treed0b6b61ab42e88ae41192b1efb322a81ab8f987a /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parenta64d0bccc8d4e10eacdb8a450cd7e5fb4af3981e (diff)
downloadbcm5719-llvm-41c409ce0d9934e1cf1271cc06c893578d57241c.tar.gz
bcm5719-llvm-41c409ce0d9934e1cf1271cc06c893578d57241c.zip
LoopVectorize.cpp: Appease MSC16.
Excuse me, I hope msc16 builders would be fine till its end day. Introduce nullptr then. ;) llvm-svn: 199001
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 74285ec2457..6a4d8b411c2 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1539,8 +1539,9 @@ static Instruction *getFirstInst(Instruction *FirstInst, Value *V,
std::pair<Instruction *, Instruction *>
InnerLoopVectorizer::addStrideCheck(Instruction *Loc) {
+ Instruction *tnullptr = 0;
if (!Legal->mustCheckStrides())
- return std::pair<Instruction *, Instruction *>(0, 0);
+ return std::pair<Instruction *, Instruction *>(tnullptr, tnullptr);
IRBuilder<> ChkBuilder(Loc);
@@ -1578,8 +1579,9 @@ InnerLoopVectorizer::addRuntimeCheck(Instruction *Loc) {
LoopVectorizationLegality::RuntimePointerCheck *PtrRtCheck =
Legal->getRuntimePointerCheck();
+ Instruction *tnullptr = 0;
if (!PtrRtCheck->Need)
- return std::pair<Instruction *, Instruction *>(0, 0);
+ return std::pair<Instruction *, Instruction *>(tnullptr, tnullptr);
unsigned NumPointers = PtrRtCheck->Pointers.size();
SmallVector<TrackingVH<Value> , 2> Starts;
OpenPOWER on IntegriCloud