Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e6f60a6
[CIR] Add builtin operator new/delete (#168578)
HendrikHuebner Nov 23, 2025
e5edb51
[bazel] Port 3773bbe9e7916ec89fb3e3cd02e29c54cabac82b
d0k Nov 23, 2025
362de22
[lldb] Fix SWIG bug detection in CMake (#169212)
da-viper Nov 23, 2025
d40c8dc
[Clang][OpenMP] Make test use clang_cc1 (#169233)
boomanaiden154 Nov 23, 2025
c543615
[LLVM] Add myself to the former maintainers list. (#169201)
resistor Nov 23, 2025
bbd99aa
Fix #168467 (r598213) (#169232)
googlewalt Nov 23, 2025
996213c
[VPlan] Refine mayRead/WriteFromMemory for VPInst, fix VPlan SLP check.
fhahn Nov 23, 2025
f7ed15b
[bazel] Fully port 3773bbe9e7916ec89fb3e3cd02e29c54cabac82b (#169247)
boomanaiden154 Nov 23, 2025
4996645
Revert "[ASTMatchers] Make isExpandedFromMacro accept llvm::StringRef…
boomanaiden154 Nov 23, 2025
ded1311
[ORC] Fix typo in comment.
lhames Nov 23, 2025
b73a281
[gn] port b5812c0cf789aa4cb (LoongArch SDNodeInfo)
nico Nov 23, 2025
3c3e2a2
[orc-rt] Remove unused Session argument from WrapperFunction::call. (…
lhames Nov 24, 2025
28eee72
[GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (#1…
phoebewang Nov 24, 2025
a6cec3f
Reland "[RegAlloc] Fix the terminal rule check for interfere with Dst…
hstk30-hw Nov 24, 2025
25c2cc4
[GlobalOpt] Use `target triple` to fix Buildbot failures, NFCI (#169260)
phoebewang Nov 24, 2025
fe56f5c
[mlir][Pass] Fix crash when applying a pass to an optional interface …
matthias-springer Nov 24, 2025
c4254cd
[Clang] Support __bf16 type for SPIR/SPIR-V (#169012)
wenju-he Nov 24, 2025
e71f243
[TableGen] Simplify MachineValueTypeSet::iterator::find_from_pos. NFC…
topperc Nov 24, 2025
c33e50b
[GlobalOpt] Use `x86-registered-target` to fix Buildbot failures, 2nd…
phoebewang Nov 24, 2025
acab67b
[M68k][compiler-rt] Allow compiler-rt builtins to be built for M68k (…
mysterymath Nov 24, 2025
ee4f647
[AMDGPU] Propagate AA info in vector load/store splitting. (#168871)
PeddleSpam Nov 24, 2025
7851b8a
[RISCV] Combine vslide{up,down} x, poison -> x (#169013)
lukel97 Nov 24, 2025
202d784
[MLIR][IRDL] Support camelCase segment size attributes in IRDL verifi…
PragmaTwice Nov 24, 2025
bbe5f80
merge main into amd-staging
ronlieb Nov 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/objc/AssertEqualsCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void AssertEqualsCheck::registerMatchers(MatchFinder *Finder) {
for (const auto &[CurrName, _] : NameMap) {
Finder->addMatcher(
binaryOperator(anyOf(hasOperatorName("!="), hasOperatorName("==")),
isExpandedFromMacro(CurrName),
isExpandedFromMacro(std::string(CurrName)),
anyOf(hasLHS(hasType(qualType(
hasCanonicalType(asString("NSString *"))))),
hasRHS(hasType(qualType(
Expand Down
6 changes: 3 additions & 3 deletions clang/docs/LibASTMatchersReference.html
Original file line number Diff line number Diff line change
Expand Up @@ -4222,7 +4222,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
</pre></td></tr>


<tr><td>Matcher&lt;<a href="https://clang.llvm.org/doxygen/classclang_1_1Decl.html">Decl</a>&gt;</td><td class="name" onclick="toggle('isExpandedFromMacro0')"><a name="isExpandedFromMacro0Anchor">isExpandedFromMacro</a></td><td>StringRef MacroName</td></tr>
<tr><td>Matcher&lt;<a href="https://clang.llvm.org/doxygen/classclang_1_1Decl.html">Decl</a>&gt;</td><td class="name" onclick="toggle('isExpandedFromMacro0')"><a name="isExpandedFromMacro0Anchor">isExpandedFromMacro</a></td><td>std::string MacroName</td></tr>
<tr><td colspan="4" class="doc" id="isExpandedFromMacro0"><pre>Matches statements that are (transitively) expanded from the named macro.
Does not match if only part of the statement is expanded from that macro or
if different parts of the statement are expanded from different
Expand Down Expand Up @@ -5643,7 +5643,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
</pre></td></tr>


<tr><td>Matcher&lt;<a href="https://clang.llvm.org/doxygen/classclang_1_1Stmt.html">Stmt</a>&gt;</td><td class="name" onclick="toggle('isExpandedFromMacro1')"><a name="isExpandedFromMacro1Anchor">isExpandedFromMacro</a></td><td>StringRef MacroName</td></tr>
<tr><td>Matcher&lt;<a href="https://clang.llvm.org/doxygen/classclang_1_1Stmt.html">Stmt</a>&gt;</td><td class="name" onclick="toggle('isExpandedFromMacro1')"><a name="isExpandedFromMacro1Anchor">isExpandedFromMacro</a></td><td>std::string MacroName</td></tr>
<tr><td colspan="4" class="doc" id="isExpandedFromMacro1"><pre>Matches statements that are (transitively) expanded from the named macro.
Does not match if only part of the statement is expanded from that macro or
if different parts of the statement are expanded from different
Expand Down Expand Up @@ -5843,7 +5843,7 @@ <h2 id="narrowing-matchers">Narrowing Matchers</h2>
</pre></td></tr>


<tr><td>Matcher&lt;<a href="https://clang.llvm.org/doxygen/classclang_1_1TypeLoc.html">TypeLoc</a>&gt;</td><td class="name" onclick="toggle('isExpandedFromMacro2')"><a name="isExpandedFromMacro2Anchor">isExpandedFromMacro</a></td><td>StringRef MacroName</td></tr>
<tr><td>Matcher&lt;<a href="https://clang.llvm.org/doxygen/classclang_1_1TypeLoc.html">TypeLoc</a>&gt;</td><td class="name" onclick="toggle('isExpandedFromMacro2')"><a name="isExpandedFromMacro2Anchor">isExpandedFromMacro</a></td><td>std::string MacroName</td></tr>
<tr><td colspan="4" class="doc" id="isExpandedFromMacro2"><pre>Matches statements that are (transitively) expanded from the named macro.
Does not match if only part of the statement is expanded from that macro or
if different parts of the statement are expanded from different
Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/ASTMatchers/ASTMatchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ AST_POLYMORPHIC_MATCHER_REGEX(isExpansionInFileMatching,
/// appearances of the macro.
AST_POLYMORPHIC_MATCHER_P(isExpandedFromMacro,
AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc),
StringRef, MacroName) {
std::string, MacroName) {
// Verifies that the statement' beginning and ending are both expanded from
// the same instance of the given macro.
auto& Context = Finder->getASTContext();
Expand Down
1 change: 1 addition & 0 deletions clang/include/clang/CIR/MissingFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ struct MissingFeatures {
static bool aggValueSlotMayOverlap() { return false; }
static bool aggValueSlotVolatile() { return false; }
static bool alignCXXRecordDecl() { return false; }
static bool allocToken() { return false; }
static bool appleKext() { return false; }
static bool armComputeVolatileBitfields() { return false; }
static bool asmGoto() { return false; }
Expand Down
9 changes: 4 additions & 5 deletions clang/lib/Basic/Targets/SPIR.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public TargetInfo {
UseAddrSpaceMapMangling = true;
HasFastHalfType = true;
HasFloat16 = true;
HasBFloat16 = true;
HasFullBFloat16 = true;
BFloat16Width = BFloat16Align = 16;
BFloat16Format = &llvm::APFloat::BFloat();
// Define available target features
// These must be defined in sorted order!
NoAsmVariants = true;
Expand Down Expand Up @@ -427,18 +431,13 @@ class LLVM_LIBRARY_VISIBILITY SPIRV64AMDGCNTargetInfo final
resetDataLayout("e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-"
"v256:256-v512:512-v1024:1024-n32:64-S32-G1-P4-A0");

BFloat16Width = BFloat16Align = 16;
BFloat16Format = &llvm::APFloat::BFloat();

HasFastHalfType = true;
HasFloat16 = true;
HalfArgsAndReturns = true;

MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
}

bool hasBFloat16Type() const override { return true; }

ArrayRef<const char *> getGCCRegNames() const override;

BuiltinVaListKind getBuiltinVaListKind() const override {
Expand Down
8 changes: 8 additions & 0 deletions clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/Value.h"
#include "mlir/Support/LLVM.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/Expr.h"
#include "clang/AST/GlobalDecl.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/OperatorKinds.h"
#include "clang/CIR/Dialect/IR/CIRTypes.h"
#include "clang/CIR/MissingFeatures.h"
#include "llvm/Support/ErrorHandling.h"
Expand Down Expand Up @@ -1093,8 +1095,14 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
case Builtin::BI__addressof:
case Builtin::BI__builtin_addressof:
case Builtin::BI__builtin_function_start:
return errorBuiltinNYI(*this, e, builtinID);
case Builtin::BI__builtin_operator_new:
return emitNewOrDeleteBuiltinCall(
e->getCallee()->getType()->castAs<FunctionProtoType>(), e, OO_New);
case Builtin::BI__builtin_operator_delete:
emitNewOrDeleteBuiltinCall(
e->getCallee()->getType()->castAs<FunctionProtoType>(), e, OO_Delete);
return RValue::get(nullptr);
case Builtin::BI__builtin_is_aligned:
case Builtin::BI__builtin_align_up:
case Builtin::BI__builtin_align_down:
Expand Down
31 changes: 31 additions & 0 deletions clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "clang/AST/DeclCXX.h"
#include "clang/AST/ExprCXX.h"
#include "clang/Basic/OperatorKinds.h"
#include "clang/CIR/MissingFeatures.h"

using namespace clang;
Expand Down Expand Up @@ -648,6 +649,36 @@ static RValue emitNewDeleteCall(CIRGenFunction &cgf,
return rv;
}

RValue CIRGenFunction::emitNewOrDeleteBuiltinCall(const FunctionProtoType *type,
const CallExpr *callExpr,
OverloadedOperatorKind op) {
CallArgList args;
emitCallArgs(args, type, callExpr->arguments());
// Find the allocation or deallocation function that we're calling.
ASTContext &astContext = getContext();
assert(op == OO_New || op == OO_Delete);
DeclarationName name = astContext.DeclarationNames.getCXXOperatorName(op);

clang::DeclContextLookupResult lookupResult =
astContext.getTranslationUnitDecl()->lookup(name);
for (const auto *decl : lookupResult) {
if (const auto *funcDecl = dyn_cast<FunctionDecl>(decl)) {
if (astContext.hasSameType(funcDecl->getType(), QualType(type, 0))) {
if (sanOpts.has(SanitizerKind::AllocToken)) {
// TODO: Set !alloc_token metadata.
assert(!cir::MissingFeatures::allocToken());
cgm.errorNYI("Alloc token sanitizer not yet supported!");
}

// Emit the call to operator new/delete.
return emitNewDeleteCall(*this, funcDecl, type, args);
}
}
}

llvm_unreachable("predeclared global operator new/delete is missing");
}

namespace {
/// Calls the given 'operator delete' on a single object.
struct CallObjectDelete final : EHScopeStack::Cleanup {
Expand Down
5 changes: 5 additions & 0 deletions clang/lib/CIR/CodeGen/CIRGenFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "clang/AST/ExprCXX.h"
#include "clang/AST/Stmt.h"
#include "clang/AST/Type.h"
#include "clang/Basic/OperatorKinds.h"
#include "clang/CIR/Dialect/IR/CIRDialect.h"
#include "clang/CIR/MissingFeatures.h"
#include "clang/CIR/TypeEvaluationKind.h"
Expand Down Expand Up @@ -1487,6 +1488,10 @@ class CIRGenFunction : public CIRGenTypeCache {

RValue emitCXXPseudoDestructorExpr(const CXXPseudoDestructorExpr *expr);

RValue emitNewOrDeleteBuiltinCall(const FunctionProtoType *type,
const CallExpr *callExpr,
OverloadedOperatorKind op);

void emitCXXTemporary(const CXXTemporary *temporary, QualType tempType,
Address ptr);

Expand Down
2 changes: 0 additions & 2 deletions clang/lib/Frontend/CompilerInvocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "clang/Basic/Version.h"
#include "clang/Basic/XRayInstr.h"
#include "clang/Config/config.h"
#include "clang/Driver/Driver.h"
#include "clang/Frontend/CommandLineSourceLoc.h"
#include "clang/Frontend/DependencyOutputOptions.h"
#include "clang/Frontend/FrontendOptions.h"
Expand Down Expand Up @@ -96,7 +95,6 @@
#include <vector>

using namespace clang;
using namespace driver;
using namespace options;
using namespace llvm::opt;

Expand Down
44 changes: 44 additions & 0 deletions clang/test/CIR/CodeGen/builtin_new_delete.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll
// RUN: FileCheck --check-prefix=LLVM --input-file=%t-cir.ll %s
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll
// RUN: FileCheck --check-prefix=OGCG --input-file=%t.ll %s


void test_builtins_basic() {
__builtin_operator_delete(__builtin_operator_new(4));
// CIR-LABEL: test_builtins_basic
// CIR: [[P:%.*]] = cir.call @_Znwm({{%.*}}) : (!u64i) -> !cir.ptr<!void>
// CIR: cir.call @_ZdlPv([[P]]) {{.*}}: (!cir.ptr<!void>) -> ()
// CIR: cir.return

// LLVM-LABEL: test_builtins_basic
// LLVM: [[P:%.*]] = call ptr @_Znwm(i64 4)
// LLVM: call void @_ZdlPv(ptr [[P]])
// LLVM: ret void

// OGCG-LABEL: test_builtins_basic
// OGCG: [[P:%.*]] = call {{.*}} ptr @_Znwm(i64 {{.*}} 4)
// OGCG: call void @_ZdlPv(ptr {{.*}} [[P]])
// OGCG: ret void
}

void test_sized_delete() {
__builtin_operator_delete(__builtin_operator_new(4), 4);

// CIR-LABEL: test_sized_delete
// CIR: [[P:%.*]] = cir.call @_Znwm({{%.*}}) : (!u64i) -> !cir.ptr<!void>
// CIR: cir.call @_ZdlPvm([[P]], {{%.*}}) {{.*}}: (!cir.ptr<!void>, !u64i) -> ()
// CIR: cir.return

// LLVM-LABEL: test_sized_delete
// LLVM: [[P:%.*]] = call ptr @_Znwm(i64 4)
// LLVM: call void @_ZdlPvm(ptr [[P]], i64 4)
// LLVM: ret void

// OGCG-LABEL: test_sized_delete
// OGCG: [[P:%.*]] = call {{.*}} ptr @_Znwm(i64 {{.*}} 4)
// OGCG: call void @_ZdlPvm(ptr {{.*}} [[P]], i64 {{.*}} 4)
// OGCG: ret void
}
31 changes: 31 additions & 0 deletions clang/test/CodeGenOpenCL/__bf16.cl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// RUN: %clang_cc1 %s -cl-std=cl3.0 -emit-llvm -o - -triple spir-unknown-unknown | FileCheck %s
// RUN: %clang_cc1 %s -cl-std=cl3.0 -emit-llvm -o - -triple spirv64-unknown-unknown | FileCheck %s

kernel void test(global __bf16 *a, global __bf16 *b){
// CHECK-LABEL: spir_kernel void @test(
// CHECK: fadd bfloat
// CHECK: fsub bfloat
// CHECK: fmul bfloat
// CHECK: fdiv bfloat

*b += *a;
*b -= *a;
*b *= *a;
*b /= *a;
}

typedef __bf16 __bf16v4 __attribute((ext_vector_type(4)));

kernel void test_v4(global __bf16v4 *a, global __bf16v4 *b){
// CHECK-LABEL: spir_kernel void @test_v4(
// CHECK: fadd <4 x bfloat>
// CHECK: fsub <4 x bfloat>
// CHECK: fmul <4 x bfloat>
// CHECK: fdiv <4 x bfloat>

*b += *a;
*b -= *a;
*b *= *a;
*b /= *a;
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clangxx -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=60 -x c++ -emit-llvm %s -o - | FileCheck %s
// expected-no-diagnostics
#ifndef HEADER
#define HEADER
Expand Down
7 changes: 4 additions & 3 deletions clang/test/SemaSYCL/bf16.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// RUN: %clang_cc1 -triple spir64 -aux-triple x86_64-unknown-linux-gnu -fsycl-is-device -verify -fsyntax-only %s
// expected-no-diagnostics

template <typename Name, typename Func>
__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) {
kernelFunc(); // expected-note {{called by 'kernel}}
kernelFunc();
}

void host_ok(void) {
Expand All @@ -11,9 +12,9 @@ void host_ok(void) {

int main()
{ host_ok();
__bf16 var; // expected-note {{'var' defined here}}
__bf16 var;
kernel<class variables>([=]() {
(void)var; // expected-error {{'var' requires 16 bit size '__bf16' type support, but target 'spir64' does not support it}}
(void)var;
int B = sizeof(__bf16);
});

Expand Down
13 changes: 13 additions & 0 deletions clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ TEST_P(ASTMatchersTest, IsExpandedFromMacro_MatchesInFile) {
EXPECT_TRUE(matches(input, binaryOperator(isExpandedFromMacro("MY_MACRO"))));
}

static std::string constructMacroName(llvm::StringRef A, llvm::StringRef B) {
return (A + "_" + B).str();
}

TEST_P(ASTMatchersTest, IsExpandedFromMacro_ConstructedMacroName) {
StringRef input = R"cc(
#define MY_MACRO(a) (4 + (a))
void Test() { MY_MACRO(4); }
)cc";
auto matcher = isExpandedFromMacro(constructMacroName("MY", "MACRO"));
EXPECT_TRUE(matches(input, binaryOperator(matcher)));
}

TEST_P(ASTMatchersTest, IsExpandedFromMacro_MatchesNested) {
StringRef input = R"cc(
#define MY_MACRO(a) (4 + (a))
Expand Down
3 changes: 2 additions & 1 deletion compiler-rt/cmake/builtin-config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ set(SPARCV9 sparcv9)
set(WASM32 wasm32)
set(WASM64 wasm64)
set(VE ve)
set(M68K m68k)

if(APPLE)
set(ARM64 arm64 arm64e)
Expand All @@ -109,7 +110,7 @@ set(ALL_BUILTIN_SUPPORTED_ARCH
${X86} ${X86_64} ${AMDGPU} ${ARM32} ${ARM64} ${AVR}
${HEXAGON} ${MIPS32} ${MIPS64} ${NVPTX} ${PPC32} ${PPC64}
${RISCV32} ${RISCV64} ${S390X} ${SPARC} ${SPARCV9}
${WASM32} ${WASM64} ${VE} ${LOONGARCH64})
${WASM32} ${WASM64} ${VE} ${LOONGARCH64} ${M68K})

include(CompilerRTUtils)
include(CompilerRTDarwinUtils)
Expand Down
2 changes: 2 additions & 0 deletions compiler-rt/lib/builtins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,8 @@ set(ve_SOURCES
${GENERIC_TF_SOURCES}
${GENERIC_SOURCES})

set(m68k_SOURCES ${GENERIC_SOURCES})

add_custom_target(builtins)
set_target_properties(builtins PROPERTIES FOLDER "Compiler-RT/Metatargets")

Expand Down
9 changes: 7 additions & 2 deletions lldb/cmake/modules/LLDBConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ if (LLDB_ENABLE_PYTHON)

# Enable targeting the Python Limited C API.
set(PYTHON_LIMITED_API_MIN_SWIG_VERSION "4.2")
set(AFFECTED_BY_SWIG_BUG SWIG_VERSION VERSION_EQUAL "4.4.0" AND Python3_VERSION VERSION_GREATER_EQUAL "3.13")
if (SWIG_VERSION VERSION_EQUAL "4.4.0" AND Python3_VERSION VERSION_GREATER_EQUAL "3.13")
set(AFFECTED_BY_SWIG_BUG TRUE)
else()
set(AFFECTED_BY_SWIG_BUG FALSE)
endif()

if (SWIG_VERSION VERSION_GREATER_EQUAL PYTHON_LIMITED_API_MIN_SWIG_VERSION
AND NOT LLDB_EMBED_PYTHON_HOME AND NOT AFFECTED_BY_SWIG_BUG)
set(default_enable_python_limited_api ON)
Expand All @@ -195,7 +200,7 @@ if (LLDB_ENABLE_PYTHON)

# Diagnose unsupported configurations.
if (LLDB_ENABLE_PYTHON_LIMITED_API AND AFFECTED_BY_SWIG_BUG)
message(SEND_ERROR "LLDB_ENABLE_PYTHON_LIMITED_API is not compatible with SWIG 4.4.0 and Python 3.13 due to a bug in SWIG: https://github.com/swig/swig/issues/3283")
message(SEND_ERROR "LLDB_ENABLE_PYTHON_LIMITED_API is not compatible with SWIG 4.4.0 and Python >= 3.13 due to a bug in SWIG: https://github.com/swig/swig/issues/3283")
endif()
if (LLDB_ENABLE_PYTHON_LIMITED_API AND LLDB_EMBED_PYTHON_HOME)
message(SEND_ERROR "LLDB_ENABLE_PYTHON_LIMITED_API is not compatible with LLDB_EMBED_PYTHON_HOME")
Expand Down
4 changes: 1 addition & 3 deletions lldb/unittests/Expression/DWARFExpressionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ class MockMemory {
MockMemory() = default;
MockMemory(Map memory) : m_memory(std::move(memory)) {
// Make sure the requested memory size matches the returned value.
for (auto &kv : m_memory) {
auto &req = kv.first;
auto &bytes = kv.second;
for ([[maybe_unused]] auto &[req, bytes] : m_memory) {
assert(bytes.size() == req.size);
}
}
Expand Down
1 change: 1 addition & 0 deletions llvm/Maintainers.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ sabre@nondot.org (email), [lattner](https://github.com/lattner) (GitHub), clattn
### Inactive or former component maintainers

Paul C. Anagnostopoulos (paul@windfall.com, [Paul-C-Anagnostopoulos](https://github.com/Paul-C-Anagnostopoulos)) -- TableGen \
Owen Anderson (resistor@mac.com, [resistor](https://github.com/resistor)) -- SelectionDAG \
Justin Bogner (mail@justinbogner.com, [bogner](https://github.com/bogner)) -- SelectionDAG \
Chandler Carruth (chandlerc@gmail.com, chandlerc@google.com, [chandlerc](https://github.com/chandlerc)) -- ADT, Support, Inlining, CMake and library layering \
Peter Collingbourne (peter@pcc.me.uk, [pcc](https://github.com/pcc)) -- LTO \
Expand Down
Loading