[clang] [PAC] Implement function pointer re-signing (PR #98847)
Daniil Kovalev via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 15 06:48:42 PDT 2024
================
@@ -165,6 +166,88 @@ CGPointerAuthInfo CodeGenModule::getPointerAuthInfoForType(QualType T) {
return ::getPointerAuthInfoForType(*this, T);
}
+static bool isZeroConstant(llvm::Value *value) {
+ if (auto ci = dyn_cast<llvm::ConstantInt>(value))
----------------
kovdan01 wrote:
Nit
```suggestion
if (const auto *CI = dyn_cast<llvm::ConstantInt>(value))
```
https://github.com/llvm/llvm-project/pull/98847
More information about the cfe-commits
mailing list