Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bazel/llvm.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _llvm_loader_repository(repository_ctx):
executable = False,
)

LLVM_COMMIT_SHA = "5f1683ca1a4a582a73eabd79cad46a5294b35c33"
LLVM_COMMIT_SHA = "d8474abfc1e7c3856b85b088f1133ae2e90da3d0"

def llvm_loader_repository_dependencies():
# This *declares* the dependency, but it won't actually be *downloaded* unless it's used.
Expand Down
8 changes: 8 additions & 0 deletions cc_bindings_from_rs/generate_bindings/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,14 @@ fn generate_trait_impls<'a, 'tcx>(
if arg.flags().contains(has_type_or_const_vars()) {
return Err((impl_def_id, anyhow!("Implementation of traits must specify all types to receive bindings.")));
}
if arg.walk().any(|arg| arg.as_type().is_some_and(|ty| ty.is_ptr_sized_integral())) {
return Err((
impl_def_id,
anyhow!(
"b/491106325 - isize and usize types are not yet supported as trait type arguments."
),
));
}
db.format_ty_for_cc(arg, TypeLocation::Other)
.map(|snippet| snippet.into_tokens(&mut prereqs))
.map_err(|err| (impl_def_id, err))
Expand Down