Skip to content

Fix objective-c ptrauth tests #149218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10,000 commits into
base: main
Choose a base branch
from

Conversation

ojhunt
Copy link
Contributor

@ojhunt ojhunt commented Jul 16, 2025

No description provided.

git apple-llvm automerger added 30 commits July 14, 2025 09:41
git apple-llvm automerger and others added 22 commits July 15, 2025 10:40
After changes in llvm#145793.

/home/david.spickett/llvm-project/lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp:1360:49: error: non-const lvalue reference to type 'uint64_t' (aka 'unsigned long long') cannot bind to a value of unrelated type 'size_t' (aka 'unsigned int')
 1360 |   status = m_disasm_up->getInstruction(mc_inst, size, data, pc, llvm::nulls());
      |                                                 ^~~~
/home/david.spickett/llvm-project/llvm/include/llvm/MC/MCDisassembler/MCDisassembler.h:135:64: note: passing argument to parameter 'Size' here
  135 |   virtual DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
      |                                                                ^
1 error generated.

The type used in the LLVM method we call is uin64_t so use that instead.
It's overkill for what it is, but that's a separate issue if anyone cares.

Also removed the unused form of GetMCInst.

(cherry picked from commit a64bfd8)
 Conflicts:
	clang/lib/Analysis/UnsafeBufferUsage.cpp
…afety attributes are emitted in diagnostics (#10993)

A recent auto-merged change from upstream
d9ef62a
seemed to remove the special handling on how macro-defined bounds-safety
attributes are emitted in diagnostics. Adding the specialization for now
to fix the test failure. The task to clean up the special handling of
the macro defined attributes is tracked separately.

This fixes test failures in
  Clang :: BoundsSafety/Sema/attributes_in_template_decls_attr_only_mode.cpp
  Clang :: BoundsSafety/Sema/complex-typespecs-with-bounds.c
  Clang :: BoundsSafety/Sema/terminated-by-attr.c
  Clang :: BoundsSafety/Sema/unsafe-late-const.c

rdar://155652853
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants