[llvm-branch-commits] [clang] [clang] Update use of checkUInt32Argument to match on main (PR #93984)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri May 31 09:38:55 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Oliver Hunt (ojhunt)
<details>
<summary>Changes</summary>
Minor correction to match current API
---
Full diff: https://github.com/llvm/llvm-project/pull/93984.diff
1 Files Affected:
- (modified) clang/lib/Sema/SemaDeclAttr.cpp (+1-1)
``````````diff
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 82c4a3c866458..e9a867ff67ba1 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -9246,7 +9246,7 @@ static void handleVTablePointerAuthentication(Sema &S, Decl *D,
AL.setInvalid();
}
- if (!AL.isArgExpr(3) || !S.checkUInt32Argument(AL, AL.getArgAsExpr(3),
+ if (!AL.isArgExpr(3) || !checkUInt32Argument(S, AL, AL.getArgAsExpr(3),
customDiscriminationValue)) {
S.Diag(AL.getLoc(), diag::err_invalid_custom_discrimination);
AL.setInvalid();
``````````
</details>
https://github.com/llvm/llvm-project/pull/93984
More information about the llvm-branch-commits
mailing list