LoopVectorize.cpp: Appease MSC16.

Excuse me, I hope msc16 builders would be fine till its end day.
Introduce nullptr then. ;)

llvm-svn: 199001
This commit is contained in:
NAKAMURA Takumi 2014-01-11 09:59:27 +00:00
parent a64d0bccc8
commit 41c409ce0d
1 changed files with 4 additions and 2 deletions

View File

@ -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;