HomePhabricator

Fix a crash when the sample profile uses md5 and -sample-profile-merge-inlinee

Authored by wmi on Jul 30 2020, 5:47 PM.

Description

Fix a crash when the sample profile uses md5 and -sample-profile-merge-inlinee
is enabled.

When -sample-profile-merge-inlinee is enabled, new FunctionSamples may be
created during profile merge without GUIDToFuncNameMap being initialized.
That will occasionally cause compiler crash. The patch fixes it.

Differential Revision: https://reviews.llvm.org/D84994