[llvm] LLVMContext: rem constexpr to unblock build w/ gcc (PR #120402)

Jan Patrick Lehr via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 02:54:36 PST 2024


https://github.com/jplehr created https://github.com/llvm/llvm-project/pull/120402

Address issues observed in buildbots with older GCC versions: https://lab.llvm.org/buildbot/#/builders/140/builds/13302

>From 638daefeeb6b56169acc5d2ad0f9edd94a29625b Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Wed, 18 Dec 2024 04:51:47 -0600
Subject: [PATCH] LLVMContext: rem constexpr to unblock build w/ gcc

Address build failures observed with gcc 7 and 8.
---
 llvm/lib/IR/LLVMContext.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp
index 9acc15f11316a2..447e5d92e0b99d 100644
--- a/llvm/lib/IR/LLVMContext.cpp
+++ b/llvm/lib/IR/LLVMContext.cpp
@@ -31,7 +31,7 @@
 
 using namespace llvm;
 
-static constexpr StringRef knownBundleName(unsigned BundleTagID) {
+static StringRef knownBundleName(unsigned BundleTagID) {
   switch (BundleTagID) {
   case LLVMContext::OB_deopt:
     return "deopt";



More information about the llvm-commits mailing list