Lost in rebase: call registerFragment with a reference to TargetBF

Summary: Fixes broken build due to a lost dereferencing

(cherry picked from FBD24799948)
This commit is contained in:
Amir Ayupov
2020-11-06 12:22:22 -08:00
committed by Maksim Panchenko
parent 2b09d672ce
commit f86a78a4e7

View File

@@ -552,7 +552,7 @@ bool BinaryContext::analyzeJumpTable(const uint64_t Address,
auto BFNamePrefix = Regex::escape(NameResolver::restore(BFName));
auto BFNameRegex = Twine(BFNamePrefix, "\\.cold(\\.\\d+)?").str();
if (Regex(BFNameRegex).match(TgtNamePrefix))
registerFragment(TargetBF, BF);
registerFragment(*TargetBF, BF);
}
return TargetBF->getParentFragment() == &BF;
};