[llvm-branch-commits] [clang] [NFC][Clang][CodeGen] Take const& in deleted copy assignment operators (PR #241713)
Vitaly Buka via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 12 13:52:16 PST 2026
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/241713
>From 832b006138c4ff81e67701bed857dde7f2b66a0a Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Wed, 11 Nov 2026 23:00:40 -0800
Subject: [PATCH] Dedup checked load; NFC const& fix
Created using spr 2.0.0-beta.2
---
clang/lib/CodeGen/CGDebugInfo.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index b70671821c920..bf92336743958 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -1028,7 +1028,8 @@ class ApplyInlineDebugLocation {
/// Restore everything back to the original state.
~ApplyInlineDebugLocation();
ApplyInlineDebugLocation(const ApplyInlineDebugLocation &) = delete;
- ApplyInlineDebugLocation &operator=(ApplyInlineDebugLocation &) = delete;
+ ApplyInlineDebugLocation &
+ operator=(const ApplyInlineDebugLocation &) = delete;
};
class SanitizerDebugLocation {
@@ -1041,7 +1042,7 @@ class SanitizerDebugLocation {
SanitizerHandler Handler);
~SanitizerDebugLocation();
SanitizerDebugLocation(const SanitizerDebugLocation &) = delete;
- SanitizerDebugLocation &operator=(SanitizerDebugLocation &) = delete;
+ SanitizerDebugLocation &operator=(const SanitizerDebugLocation &) = delete;
};
} // namespace CodeGen
More information about the llvm-branch-commits
mailing list