mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
sem: Add new TypeConstructor and TypeCast CallTargets
Nothing yet creates or uses these. Also add Constant to sem::Call. These will be needed for TypeConstructors / TypeCasts. Bug: tint:888 Change-Id: I5b8c64062f3262bdffd210bb012db980c5610b26 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69107 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
@@ -2500,7 +2500,7 @@ sem::Call* Resolver::IntrinsicCall(const ast::CallExpression* expr,
|
||||
}
|
||||
|
||||
auto* call = builder_->create<sem::Call>(expr, intrinsic, std::move(args),
|
||||
current_statement_);
|
||||
current_statement_, sem::Constant{});
|
||||
|
||||
current_function_->AddDirectlyCalledIntrinsic(intrinsic);
|
||||
|
||||
@@ -2544,7 +2544,7 @@ sem::Call* Resolver::FunctionCall(const ast::CallExpression* expr) {
|
||||
}
|
||||
|
||||
auto* call = builder_->create<sem::Call>(expr, target, std::move(args),
|
||||
current_statement_);
|
||||
current_statement_, sem::Constant{});
|
||||
|
||||
if (current_function_) {
|
||||
target->AddCallSite(call);
|
||||
|
||||
Reference in New Issue
Block a user