diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-20 21:18:28 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-20 21:18:28 -0700 |
commit | 258531b7ac0d43fce84a008235c597f920a6af7e (patch) | |
tree | b34b34e61aecb6e353b573596560a68e05d873f0 /llvm/lib/CodeGen/SelectOptimize.cpp | |
parent | 06b551c944ff1cb4a21ca39c9e5ee6f67fc282ee (diff) | |
download | llvm-258531b7ac0d43fce84a008235c597f920a6af7e.zip llvm-258531b7ac0d43fce84a008235c597f920a6af7e.tar.gz llvm-258531b7ac0d43fce84a008235c597f920a6af7e.tar.bz2 |
Remove redundant initialization of Optional (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/SelectOptimize.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectOptimize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectOptimize.cpp b/llvm/lib/CodeGen/SelectOptimize.cpp index a7a6987..75c2eeb 100644 --- a/llvm/lib/CodeGen/SelectOptimize.cpp +++ b/llvm/lib/CodeGen/SelectOptimize.cpp @@ -926,7 +926,7 @@ Optional<uint64_t> SelectOptimize::computeInstCost(const Instruction *I) { TTI->getInstructionCost(I, TargetTransformInfo::TCK_Latency); if (auto OC = ICost.getValue()) return Optional<uint64_t>(*OC); - return Optional<uint64_t>(None); + return Optional<uint64_t>(); } ScaledNumber<uint64_t> |