This patch replaces CallInstr with CallBase to cover InvokeInstr
besides CallInstr while removing nocallback attribute on a call site.
It also extends drop-attribute.ll test to include a case for an invoke
instruction.
Details
Details
- Reviewers
tejohnson arsenm - Commits
- rG117ecdd5789e: [IRLinker] Replace CallInstr with CallBase
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
What kind of test would be good to add here?
I had a test (drop-attribute.ll) in D137360, that checks the usage of updateAttributes functionality. Do you suggest extending that for invoke instruction?
Comment Actions
I think you could just extend that test to include an invoke instruction and confirm it is handled correctly.
Comment Actions
lgtm with one test fix noted below. Thanks for the fix!
llvm/test/Linker/drop-attribute.ll | ||
---|---|---|
14 | I think you need to add the {{$}} at the end to make sure the nocallback attribute is gone. |
I think you need to add the {{$}} at the end to make sure the nocallback attribute is gone.