Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jplehr
Copy link
Contributor

@jplehr jplehr commented Dec 18, 2024

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
Copy link
Member

llvmbot commented Dec 18, 2024

@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";

@ronlieb ronlieb merged commit 9826201 into llvm:main Dec 18, 2024
7 of 10 checks passed
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