[clang] 507c92a - [clang]: immediate address of build issue (#180236)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 6 12:00:15 PST 2026
Author: Nhat Nguyen
Date: 2026-02-06T15:00:10-05:00
New Revision: 507c92ac08bad62d8ffa283d01ef93a65b90328c
URL: https://github.com/llvm/llvm-project/commit/507c92ac08bad62d8ffa283d01ef93a65b90328c
DIFF: https://github.com/llvm/llvm-project/commit/507c92ac08bad62d8ffa283d01ef93a65b90328c.diff
LOG: [clang]: immediate address of build issue (#180236)
Fixed the build issue happen
[here](https://github.com/llvm/llvm-project/pull/164692)
Issue here is this [function
](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/TreeTransform.h#L13057-L13061)
doesn't return a type
Added:
Modified:
clang/lib/AST/ItaniumMangle.cpp
clang/lib/Sema/TreeTransform.h
clang/test/CodeGenCXX/reflection-mangle-itanium.cpp
clang/test/CodeGenCXX/reflection-mangle-ms.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp
index cd38bb523e3f9..70acc8a78ed52 100644
--- a/clang/lib/AST/ItaniumMangle.cpp
+++ b/clang/lib/AST/ItaniumMangle.cpp
@@ -4954,6 +4954,7 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity,
case Expr::CXXReflectExprClass: {
// TODO(Reflection): implement this after introducing std::meta::info
assert(false && "unimplemented");
+ break;
}
// FIXME: invent manglings for all these.
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index 0d6a5b5546f1c..6a4d88b28c614 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -13059,6 +13059,7 @@ template <typename Derived>
ExprResult TreeTransform<Derived>::TransformCXXReflectExpr(CXXReflectExpr *E) {
// TODO(reflection): Implement its transform
assert(false && "not implemented yet");
+ return ExprError();
}
template<typename Derived>
diff --git a/clang/test/CodeGenCXX/reflection-mangle-itanium.cpp b/clang/test/CodeGenCXX/reflection-mangle-itanium.cpp
index 653bf7aebd876..a6266165e77f8 100644
--- a/clang/test/CodeGenCXX/reflection-mangle-itanium.cpp
+++ b/clang/test/CodeGenCXX/reflection-mangle-itanium.cpp
@@ -3,4 +3,5 @@
int main() {
(void)(^^int); // expected-error {{cannot compile this scalar expression yet}}
+ return 0;
}
diff --git a/clang/test/CodeGenCXX/reflection-mangle-ms.cpp b/clang/test/CodeGenCXX/reflection-mangle-ms.cpp
index 6dd8aefbcec96..327bc0111bae8 100644
--- a/clang/test/CodeGenCXX/reflection-mangle-ms.cpp
+++ b/clang/test/CodeGenCXX/reflection-mangle-ms.cpp
@@ -3,4 +3,5 @@
int main() {
(void)(^^int); // expected-error {{cannot compile this scalar expression yet}}
+ return 0;
}
More information about the cfe-commits
mailing list