Skip to content

Conversation

@chandlerc
Copy link
Contributor

This also updates the patch file for compiler-rt as upstream has changed a bit. No functional change.

@josh11b josh11b enabled auto-merge October 1, 2025 15:17
@chandlerc chandlerc requested a review from a team as a code owner November 11, 2025 01:54
@chandlerc chandlerc requested review from zygoloid and removed request for a team November 11, 2025 01:54
Comment on lines 1069 to 1072
llvm::Triple target_triple(options_.codegen_options.target);
std::string target_error;
const llvm::Target* target = llvm::TargetRegistry::lookupTarget(
llvm::Triple(options_.codegen_options.target), target_error);
const llvm::Target* target =
llvm::TargetRegistry::lookupTarget(target_triple, target_error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objection to the change, but I'm surprised this was necessary -- it looks like the old code would have still compiled and worked. Did it not?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, looks like this issue was fixed in 5714f4d and I guess this PR was written against an older version. Nothing to see here, then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this should be gone now.

static auto MapTagType(Context& context, const clang::TagType& type)
-> TypeExpr {
auto* tag_decl = type.getOriginalDecl();
auto* tag_decl = type.getDecl();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the version of LLVM we're moving to doesn't have this rename yet (llvm/llvm-project@b516dcc landed on October 15, but this PR is picking an LLVM revision from September).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that this PR is ready for review, it includes a sufficiently new version of LLVM for this rename.

This also updates the patch file for compiler-rt as upstream has changed
a bit. No functional change.
Copy link
Contributor Author

@chandlerc chandlerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should now be ready to review. Sorry for confusion with earlier versions.

static auto MapTagType(Context& context, const clang::TagType& type)
-> TypeExpr {
auto* tag_decl = type.getOriginalDecl();
auto* tag_decl = type.getDecl();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that this PR is ready for review, it includes a sufficiently new version of LLVM for this rename.

Comment on lines 1069 to 1072
llvm::Triple target_triple(options_.codegen_options.target);
std::string target_error;
const llvm::Target* target = llvm::TargetRegistry::lookupTarget(
llvm::Triple(options_.codegen_options.target), target_error);
const llvm::Target* target =
llvm::TargetRegistry::lookupTarget(target_triple, target_error);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this should be gone now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants