diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-20 22:45:45 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-20 22:45:45 -0700 |
commit | 7a47ee51a145a40332311330ef45b5d62d8ae023 (patch) | |
tree | 2e7ac16bc8430595cbe68692d08111f028b5f995 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 9cfbe7bbfea762d72b60c51c8ab5dadf6b317a9a (diff) | |
download | llvm-7a47ee51a145a40332311330ef45b5d62d8ae023.zip llvm-7a47ee51a145a40332311330ef45b5d62d8ae023.tar.gz llvm-7a47ee51a145a40332311330ef45b5d62d8ae023.tar.bz2 |
[llvm] Don't use Optional::getValue (NFC)
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 6a7cd68..1bf527f 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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); } |