Fix a check failure "[functioninfo.h:163] Check failed: logical_num > 0 (0 vs. 0)".
Fix a check failure "[functioninfo.h:163] Check failed: logical_num > 0 (0 vs. 0)".

Some code was mistakenly dropped during merge and now it is added back.

google/autofdo,google/autofdo,google/autofdo