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[] = {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to