[PATCH] D41474: Fix a crash in lazy loading of Metadata in ThinLTO

Sunil Srivastava via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 20 17:44:01 PST 2017


Sunil_Srivastava created this revision.
Sunil_Srivastava added reviewers: tejohnson, JDevlieghere.
Herald added subscribers: eraman, inglorion, mehdi_amini.

During the lazy loading pass of ThinLTO, if the load of a function body
creates forward references, resolve them right there.

This fixes PR35472.


https://reviews.llvm.org/D41474

Files:
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Reader/MetadataLoader.cpp
  lib/Bitcode/Reader/MetadataLoader.h
  test/ThinLTO/X86/Inputs/pr35472-b.ll
  test/ThinLTO/X86/pr35472-a.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41474.127809.patch
Type: text/x-patch
Size: 13925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171221/2947c8e7/attachment.bin>


More information about the llvm-commits mailing list