Skip to content

LLVMContext: rem constexpr to unblock build w/ gcc#120402

Merged
ronlieb merged 1 commit into
llvm:mainfrom
jplehr:fix/gcc7-8-build
Dec 18, 2024
Merged

LLVMContext: rem constexpr to unblock build w/ gcc#120402
ronlieb merged 1 commit into
llvm:mainfrom
jplehr:fix/gcc7-8-build

Conversation

@jplehr

@jplehr jplehr commented Dec 18, 2024

Copy link
Copy Markdown
Contributor

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

Address build failures observed with gcc 7 and 8.
@jplehr jplehr requested a review from arsenm December 18, 2024 10:54
@llvmbot

llvmbot commented Dec 18, 2024

Copy link
Copy Markdown
Member

@llvm/pr-subscribers-llvm-ir

Author: Jan Patrick Lehr (jplehr)

Changes

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


Full diff: https://github.com/llvm/llvm-project/pull/120402.diff

1 Files Affected:

  • (modified) llvm/lib/IR/LLVMContext.cpp (+1-1)
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";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants