[DWARFLinker] Treat NULL DIE references as resolution failures in parallel (#195363)
CompileUnit::resolveDIEReference returned whatever getDIEIndexForOffset
pointed at, even when the entry was a NULL tombstone. The classic linker
checks DWARFDie::isNULL(). Mirror that here so callers get std::nullopt
and warn.
Also fix the "cann't" typo at the two warning sites to match classic,
and enable `--linker parallel` in null-die.test.
[test] Cover R_RISCV_ADD/SUB and R_RISCV_RVC_{BRANCH,JUMP} (#195555)
These were uncovered according to an LLVM_BUILD_INSTRUMENTED_COVERAGE
build.
llvm-mc resolves `.L1 - .L0` differences at assembly time, so
riscv-reloc-add.s doesn't emit the R_RISCV_ADD*/R_RISCV_SUB* pairs it
was meant to test.
Add riscv-reloc-rvc.s, modeled on riscv-branch.s/riscv-jal.s, to
exercise R_RISCV_RVC_BRANCH and R_RISCV_RVC_JUMP. Drive offsets via
-Ttext + --defsym to land precise values that isolate complementary
extractBits groups.
krpc: Get rid of KRPC_VNET macros
When the krpc was vnet'd, the VNET macros were hidden
behind macros that had the KRPC_ prefix on them.
This was done because, at the time, it was thought
that something other than vnet might be used for this.
That has not happened and probably will not happen,
so this patch replaces these obscuring macros with
the regular vnet ones.
There should be no semantics change caused by
this commit.
Discussed with: bz, glebius
MFC after: 1 month
Handle missing compose service label in app query
This commit adds fixes for app.query crashing with KeyError when a
container tagged with the com.docker.compose.project label is missing
the com.docker.compose.service label. A single such container would
take down the entire apps panel since the unconditional label lookup
in translate_resources_to_desired_workflow raised before any app data
could be returned.
The label is now read defensively, falling back to the container name
(or 'unknown') for the displayed service_name. The container is still
counted and its ports, volumes, images, and state are still aggregated
normally.
(cherry picked from commit 8c8019091c9b6d830eff19e79966546b9659d3eb)
NAS-140732 / 27.0.0-BETA.1 / Handle missing compose service label in app query (#18889)
This commit adds fixes for app.query crashing with KeyError when a
container tagged with the com.docker.compose.project label is missing
the com.docker.compose.service label. A single such container would take
down the entire apps panel since the unconditional label lookup in
translate_resources_to_desired_workflow raised before any app data could
be returned.
The label is now read defensively, falling back to the container name
(or 'unknown') for the displayed service_name. The container is still
counted and its ports, volumes, images, and state are still aggregated
normally.
This can potentially happen when user has manually deployed containers.
[clang][NFC] Mark CWG2629 as implemented and add a test (#195490)
This is ill-formed:
```cpp
switch (0.0) {}
```
Before [CWG2629](https://wg21.link/cwg2629) though, this was allowed:
```cpp
switch (double d = 0.0) {} // Value of 'd' is implicitly converted to an integer
```
Clang however has always rejected both: https://godbolt.org/z/GYc4hhrnz
[clang-tidy] Preserve typedef comments in `modernize-use-using` (#180372)
Keep comment blocks between the typedef type and name by capturing the
raw lexer range and avoid injecting unrelated tokens into the
replacement.
Fixes https://github.com/llvm/llvm-project/issues/159518.
usergroups: Update venues for Hamburg and Portland
Hamburg changed venue after 30 years.
Include link to their meeting page and update venue to match.
Reported by cracauer@ on
https://forums.freebsd.org/threads/102512/#post-757478
Portland website has updated their meeting link.
Calagator search now quotes "BSD Pizza Night".
This removes false positives.
Reviewed by: ziaee
Signed-off-by: bigsneaky at duck.com
Closes: https://github.com/freebsd/freebsd-doc/pull/663
[ELF] maybeWarnUnorderableSymbol: drop redundant `d &&`, assert isShared. NFC (#195543)
Test Defined first via dyn_cast. Lazy/Common/Placeholder cannot reach
here: readCallGraph runs after replaceCommonSymbols, buildSectionOrder
runs after demoteSymbolsAndComputeIsPreemptible, and redirectSymbols
detaches Placeholder foo at v1 stubs from objectFiles.
In symbol-ordering-file-warnings.s, add a common-symbol case and use
`count 0` for empty-output checks.