aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ArrayHandler.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-14 03:29:04 +0000
committer_ov4 <ov4@ov4.org>2026-10-14 03:29:04 +0000
commit699e18b65b07af73ccd14b28f83572b1843c7d37 (patch)
tree98b98269e02eb9052b2af698383a858d63b120a7 /lib/CodeGen/ArrayHandler.cc
parent3ef7f8b778dce23af25965b379126b9dd95d1c27 (diff)
feat(types): add native C scalar types and imported aliases
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/ArrayHandler.cc')
-rw-r--r--lib/CodeGen/ArrayHandler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ArrayHandler.cc b/lib/CodeGen/ArrayHandler.cc
index 8b37b8f..bd68473 100644
--- a/lib/CodeGen/ArrayHandler.cc
+++ b/lib/CodeGen/ArrayHandler.cc
@@ -321,7 +321,7 @@ bool ArrayHandler::emitArrayArgument(ExprAST *ArgExpr,
Callee.c_str(), ElemTypeName.c_str());
return false;
}
- if (Meta->ElementTypeName != ElemTypeName) {
+ if (!CG.resolveType(Meta->ElementTypeName)->sameType(CG.resolveType(ElemTypeName))) {
CG.reportError("Array argument %s to %s must have element type %s (got %s)",
Var->getName().c_str(), Callee.c_str(),
ElemTypeName.c_str(), Meta->ElementTypeName.c_str());