Fix PR25101 - Handle anonymous functions without VST entries
authorTeresa Johnson <tejohnson@google.com>
Sat, 10 Oct 2015 14:18:36 +0000 (14:18 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 10 Oct 2015 14:18:36 +0000 (14:18 +0000)
commitef4e0adfe75684bf9017c8a9c5309e77b8aa3b7b
tree1b69a10ec2834b3c68dffceed87e6fc54326160b
parent7e0492b37588d8d3acada67d50742ea11e2e303a
Fix PR25101 - Handle anonymous functions without VST entries

Summary:
The change to use the VST function entries for lazy deserialization did
not handle the case of anonymous functions without aliases. In that case
we must fall back to scanning the function blocks as there is no VST
entry.

Reviewers: dexonsmith, joker.eph, davidxl

Subscribers: tstellarAMD, llvm-commits

Differential Revision: http://reviews.llvm.org/D13596

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249947 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
test/Bitcode/anon-functions.ll [new file with mode: 0644]