[PATCH] Don't constant fold through zero-length fields
Thomas Jablin
tjablin at gmail.com
Wed Sep 17 16:40:27 PDT 2014
I've updated the patch by replacing the CHECK-NOT test cases with CHECK test cases and included a new test demonstrating that indexing past the end of an array that is not the last field in a structure is already handled correctly.
http://reviews.llvm.org/D5032
Files:
lib/Analysis/ConstantFolding.cpp
test/Transforms/GlobalOpt/empty-type-field.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5032.13808.patch
Type: text/x-patch
Size: 2665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140917/be7bf9d7/attachment.bin>
More information about the llvm-commits
mailing list