[all-commits] [llvm/llvm-project] 00cdaa: [clang][bytecode] Add `Descriptor::hasTrivialDtor(...

Timm Baeder via All-commits all-commits at lists.llvm.org
Mon Jun 30 08:00:20 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00cdaa5c395c122f8ede2a4b0587bf9a0dfecc2a
      https://github.com/llvm/llvm-project/commit/00cdaa5c395c122f8ede2a4b0587bf9a0dfecc2a
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.h
    M clang/lib/AST/ByteCode/Descriptor.cpp
    M clang/lib/AST/ByteCode/Descriptor.h

  Log Message:
  -----------
  [clang][bytecode] Add `Descriptor::hasTrivialDtor()` (#146286)

We sometimes used to have a long list of 

```
  GetLocalPtr
  PopPtr
  [...]
```

ops at the end of scopes, because we first got a pointer to a local
variable and only then did we figure out that we didn't actually want to
call the destructor for it. Add a new function that allows us to just
ask the `Descriptor` whether we need to call its destructor.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list