[llvm] Don't use Optional::getValue (NFC)

This commit is contained in:
Kazu Hirata
2022-06-20 22:45:45 -07:00
parent 9cfbe7bbfe
commit 7a47ee51a1
92 changed files with 167 additions and 186 deletions

View File

@@ -3331,7 +3331,7 @@ Error BitcodeReader::globalCleanup() {
// Some types could be renamed during loading if several modules are
// loaded in the same LLVMContext (LTO scenario). In this case we should
// remangle intrinsics names as well.
RemangledIntrinsics[&F] = Remangled.getValue();
RemangledIntrinsics[&F] = *Remangled;
// Look for functions that rely on old function attribute behavior.
UpgradeFunctionAttributes(F);
}