[clang] [clang][bytecode] Remove constexpr from Block::getMetadataSize() (PR #242221)
Yusuke MINATO via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 13 01:19:51 PST 2026
https://github.com/yus3710-fj created https://github.com/llvm/llvm-project/pull/242221
This patch fixes the build failure with GCC 8.
>From 96aca67fd03be34a6305efed5b04161d48bf3a3c Mon Sep 17 00:00:00 2001
From: Yusuke MINATO <minato.yusuke at fujitsu.com>
Date: Tue, 10 Nov 2026 15:19:56 +0900
Subject: [PATCH] [clang][bytecode] Remove constexpr from
Block::getMetadataSize()
---
clang/lib/AST/ByteCode/Block.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/lib/AST/ByteCode/Block.h b/clang/lib/AST/ByteCode/Block.h
index f166d5a608f4d..731790ab4aebf 100644
--- a/clang/lib/AST/ByteCode/Block.h
+++ b/clang/lib/AST/ByteCode/Block.h
@@ -84,7 +84,7 @@ class Block final {
return sizeof(Block) + getMetadataSize(K) + D->getAllocSize();
}
- static constexpr unsigned getMetadataSize(BlockKind K) {
+ static unsigned getMetadataSize(BlockKind K) {
switch (K) {
case None:
return 0;
More information about the cfe-commits
mailing list