diff options
author | Amr Hesham <amr96@programmer.net> | 2025-07-28 20:29:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-28 20:29:38 +0200 |
commit | 2762a079ee7d676a1026b15b445f75365832b2be (patch) | |
tree | 1a65e17f9bd24ded0ae060ff2ed8489af2614113 /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | 82ad67b13850599275f296a3e8cb16481be463ff (diff) | |
download | llvm-2762a079ee7d676a1026b15b445f75365832b2be.zip llvm-2762a079ee7d676a1026b15b445f75365832b2be.tar.gz llvm-2762a079ee7d676a1026b15b445f75365832b2be.tar.bz2 |
[CIR] Implement LValueBitcast for ComplexType (#150668)
This change adds support for LValueBitcast for ComplexType
https://github.com/llvm/llvm-project/issues/141365
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenModule.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp index 3502705..0724cb1 100644 --- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp @@ -1208,6 +1208,15 @@ cir::GlobalOp CIRGenModule::getGlobalForStringLiteral(const StringLiteral *s, return gv; } +void CIRGenModule::emitExplicitCastExprType(const ExplicitCastExpr *e, + CIRGenFunction *cgf) { + if (cgf && e->getType()->isVariablyModifiedType()) + cgf->emitVariablyModifiedType(e->getType()); + + assert(!cir::MissingFeatures::generateDebugInfo() && + "emitExplicitCastExprType"); +} + void CIRGenModule::emitDeclContext(const DeclContext *dc) { for (Decl *decl : dc->decls()) { // Unlike other DeclContexts, the contents of an ObjCImplDecl at TU scope |