[llvm] r199001 - LoopVectorize.cpp: Appease MSC16.
NAKAMURA Takumi
geek4civic at gmail.com
Sat Jan 11 01:59:28 PST 2014
Author: chapuni
Date: Sat Jan 11 03:59:27 2014
New Revision: 199001
URL: http://llvm.org/viewvc/llvm-project?rev=199001&view=rev
Log:
LoopVectorize.cpp: Appease MSC16.
Excuse me, I hope msc16 builders would be fine till its end day.
Introduce nullptr then. ;)
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=199001&r1=199000&r2=199001&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Sat Jan 11 03:59:27 2014
@@ -1539,8 +1539,9 @@ static Instruction *getFirstInst(Instruc
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(Ins
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;
More information about the llvm-commits
mailing list