summaryrefslogtreecommitdiff
path: root/lib
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
commit55da404566ce18e13532661494d53819832684bd (patch)
tree2cac1f0ba7df500ae21efabff5d86d041821a725 /lib
parente62f38b6b75f0cd8961be00b874cbd344a9676b5 (diff)
downloadllvm-55da404566ce18e13532661494d53819832684bd.tar.gz
llvm-55da404566ce18e13532661494d53819832684bd.tar.bz2
llvm-55da404566ce18e13532661494d53819832684bd.tar.xz
LoopVectorize.cpp: Appease MSC16.
Excuse me, I hope msc16 builders would be fine till its end day. Introduce nullptr then. ;) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 74285ec245..6a4d8b411c 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/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;