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

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Jun 15 18:28:08 PDT 2015


> On 2015-Jun-15, at 18:23, Tyler Nowicki <tnowicki at apple.com> wrote:
> 
> Hi,
> 
> 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.
> 
> Tyler
> 
> <0001-Prevent-segfault-when-printing-loop-hint-metadata.patch>_______________________________________________

Testcase?





More information about the llvm-commits mailing list