[llvm] [InstCombine] Combine ptrauth constants into ptrauth intrinsics. (PR #94705)
Daniil Kovalev via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 16 22:02:35 PDT 2024
================
@@ -2661,6 +2662,27 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
AuthDisc = CI->getArgOperand(2);
} else
break;
+ } else if (auto *PtrToInt = dyn_cast<PtrToIntOperator>(Ptr)) {
----------------
kovdan01 wrote:
nit
```suggestion
} else if (const auto *PtrToInt = dyn_cast<PtrToIntOperator>(Ptr)) {
```
https://github.com/llvm/llvm-project/pull/94705
More information about the llvm-commits
mailing list