[Patch][AsmWriter] Prevent SegFault when printing IR.

Tyler Nowicki tnowicki at apple.com
Mon Jun 15 18:23:48 PDT 2015


When printing IR for each pass sometimes a call to printMetadataAttachments from InstCombiner will produce a seg-fault because it is dereferencing bad pointer. I’m not exactly sure whats happening here. But here is a patch to prevent the seg-fault.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Prevent-segfault-when-printing-loop-hint-metadata.patch
Type: application/octet-stream
Size: 710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150615/3cdd3191/attachment.obj>

More information about the llvm-commits mailing list