[Lldb-commits] [lldb] [PAC][lldb][Dwarf] Support `__ptrauth`-qualified types in user expressions (PR #84387)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 2 04:11:07 PDT 2024
================
@@ -4562,6 +4591,19 @@ TypeSystemClang::AddConstModifier(lldb::opaque_compiler_type_t type) {
return CompilerType();
}
+CompilerType
+TypeSystemClang::AddPtrAuthModifier(lldb::opaque_compiler_type_t type,
+ uint32_t payload) {
+ if (type) {
----------------
Michael137 wrote:
Could change these to early-return (which [LLVM style guide recommends](https://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code)). I.e.:
```
if (!type)
return {};
...
```
This applies to the other functions above as well
https://github.com/llvm/llvm-project/pull/84387
More information about the lldb-commits
mailing list