[llvm] 4cd6dc5 - [RISCV] Add more curly braces to constexpr array initialization to hopefully appease gcc 5.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 14 21:52:18 PST 2021


Author: Craig Topper
Date: 2021-12-14T21:44:50-08:00
New Revision: 4cd6dc5adb7ab44ee31832770cfa0d99fe1f205e

URL: https://github.com/llvm/llvm-project/commit/4cd6dc5adb7ab44ee31832770cfa0d99fe1f205e
DIFF: https://github.com/llvm/llvm-project/commit/4cd6dc5adb7ab44ee31832770cfa0d99fe1f205e.diff

LOG: [RISCV] Add more curly braces to constexpr array initialization to hopefully appease gcc 5.

Build bot failure found after D115668.

Added: 
    

Modified: 
    llvm/lib/Support/RISCVISAInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/RISCVISAInfo.cpp b/llvm/lib/Support/RISCVISAInfo.cpp
index bce6ea63870de..94929e7e052f1 100644
--- a/llvm/lib/Support/RISCVISAInfo.cpp
+++ b/llvm/lib/Support/RISCVISAInfo.cpp
@@ -710,8 +710,8 @@ struct ImpliedExtsEntry {
 };
 
 static constexpr ImpliedExtsEntry ImpliedExts[] = {
-    {"v", ImpliedExtsV},
-    {"zfh", ImpliedExtsZfh},
+    {{"v"}, {ImpliedExtsV}},
+    {{"zfh"}, {ImpliedExtsZfh}},
 };
 
 void RISCVISAInfo::updateImplication() {


        


More information about the llvm-commits mailing list