[PATCH] D18718: [DependenceAnalysis] Check if result of getConstantPart is null
Brendon Cahoon via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 16:32:20 PDT 2016
bcahoon created this revision.
bcahoon added a reviewer: sanjoy.
bcahoon added a subscriber: llvm-commits.
A seg-fault occurs due to a reference of a null pointer, which is the value returned by getConstantPart. This function returns null if the constant part is not found. The code that calls this function needs to check for the null return value.
http://reviews.llvm.org/D18718
Files:
lib/Analysis/DependenceAnalysis.cpp
test/Analysis/DependenceAnalysis/MIVCheckConst.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18718.52443.patch
Type: text/x-patch
Size: 5336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160401/49a593eb/attachment.bin>
More information about the llvm-commits
mailing list