[clang] 2e20ff8 - [AVR] Remove a global initializer. NFCI.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 7 07:42:17 PST 2021
Author: Benjamin Kramer
Date: 2021-11-07T16:30:18+01:00
New Revision: 2e20ff8c1ab42ccfe102589114587008b411397f
URL: https://github.com/llvm/llvm-project/commit/2e20ff8c1ab42ccfe102589114587008b411397f
DIFF: https://github.com/llvm/llvm-project/commit/2e20ff8c1ab42ccfe102589114587008b411397f.diff
LOG: [AVR] Remove a global initializer. NFCI.
Added:
Modified:
clang/lib/Driver/ToolChains/AVR.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/AVR.cpp b/clang/lib/Driver/ToolChains/AVR.cpp
index 896afcc3474a4..a66cae8b4d6b2 100644
--- a/clang/lib/Driver/ToolChains/AVR.cpp
+++ b/clang/lib/Driver/ToolChains/AVR.cpp
@@ -28,9 +28,9 @@ using namespace llvm::opt;
namespace {
-const struct {
+constexpr struct {
StringRef Name;
- std::string SubPath;
+ StringRef SubPath;
StringRef Family;
unsigned DataAddr;
} MCUInfo[] = {
More information about the cfe-commits
mailing list