[clang] [lldb] [clang]: support std::meta::info for primitive types (PR #190356)

Nhat Nguyen via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 31 13:54:32 PDT 2026


================
@@ -487,6 +487,13 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) {
       ResultType = llvm::PointerType::getUnqual(getLLVMContext());
       break;
 
+    case BuiltinType::MetaInfo:
+      // FIXME(Reflection): once consteval-only types are supported,
+      // make this an llvm_unreachable instead because reflection
+      // should not reach here
+      ResultType = llvm::IntegerType::get(getLLVMContext(), 64);
+      break;
----------------
changkhothuychung wrote:

if we put an assert here it will crash this codegen test.

```cpp
(void)(^^int); // expected-error {{cannot compile this scalar expression yet}}
```

https://github.com/llvm/llvm-project/pull/190356


More information about the cfe-commits mailing list