aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.cpp
diff options
context:
space:
mode:
authorAmr Hesham <amr96@programmer.net>2025-07-28 20:29:38 +0200
committerGitHub <noreply@github.com>2025-07-28 20:29:38 +0200
commit2762a079ee7d676a1026b15b445f75365832b2be (patch)
tree1a65e17f9bd24ded0ae060ff2ed8489af2614113 /clang/lib/CIR/CodeGen/CIRGenModule.cpp
parent82ad67b13850599275f296a3e8cb16481be463ff (diff)
downloadllvm-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.cpp9
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