[Lldb-commits] [PATCH] D140332: [ADT] Alias llvm::Optional to std::optional
Sergei Barannikov via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 19 12:19:32 PST 2022
barannikov88 added inline comments.
================
Comment at: clang/lib/Basic/TargetInfo.cpp:513
if (Opts.MaxBitIntWidth)
- MaxBitIntWidth = Opts.MaxBitIntWidth;
+ MaxBitIntWidth = (unsigned)Opts.MaxBitIntWidth;
----------------
Nit: C-style casts are generally discouraged (there are several occurrences in this patch).
================
Comment at: llvm/lib/CodeGen/RegAllocGreedy.h:83
public:
- ExtraRegInfo() = default;
+ ExtraRegInfo() {}
ExtraRegInfo(const ExtraRegInfo &) = delete;
----------------
Is it somehow different than ' = default'?
================
Comment at: mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp:182
- return ret;
+ return std::move(ret);
}
----------------
clang-tidy would usually complain on this. Does it solve some gcc issue?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140332/new/
https://reviews.llvm.org/D140332
More information about the lldb-commits
mailing list