Commit 8d7fe847 authored by David Gross's avatar David Gross
Browse files

Metadata extractor must tolerate missing accumulator function.

Looking up a general reduction accumulator function by name can fail,
just as looking up a foreach kernel function by name can fail: One of
the uses of MetadataExtractor is as part of the RSEmbedInfoPass, which
bcc_compat runs sufficiently late in the phase order that
RSKernelExpandPass has already run and the original (UNexpanded)
accumulator function may have been deleted as having no references (if
it has been inlined into the expanded accumulator function and is
otherwise unreferenced).

Bug: 23535724
(cherry picked from commit 34383a2f)

Change-Id: If9eba2bfca4c591de7bd5a464cf76e45007b3295
parent c545d6f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment