aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDani Ferreira Franco Moura <danimoura@google.com>2022-12-16 12:07:56 +0100
committerDmitri Gribenko <gribozavr@gmail.com>2022-12-16 12:22:23 +0100
commit0da4cecfb6ad14ee0f0f9fa904e685fd6b64be60 (patch)
tree85c60e28e72ead9dfbf3f4cbca3c9c05cdaa7a1d /clang/lib/CodeGen/CodeGenFunction.cpp
parent47f0b6630c78ab52c2197ec5e1c2d13a6acffed1 (diff)
downloadllvm-0da4cecfb6ad14ee0f0f9fa904e685fd6b64be60.zip
llvm-0da4cecfb6ad14ee0f0f9fa904e685fd6b64be60.tar.gz
llvm-0da4cecfb6ad14ee0f0f9fa904e685fd6b64be60.tar.bz2
[clang][dataflow] Remove unused argument in getNullability
This change will allow users to call getNullability() without providing an ASTContext. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D140104
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index ad5ffec..874a083 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -956,7 +956,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
// If we're checking nullability, we need to know whether we can check the
// return value. Initialize the flag to 'true' and refine it in EmitParmDecl.
if (SanOpts.has(SanitizerKind::NullabilityReturn)) {
- auto Nullability = FnRetTy->getNullability(getContext());
+ auto Nullability = FnRetTy->getNullability();
if (Nullability && *Nullability == NullabilityKind::NonNull) {
if (!(SanOpts.has(SanitizerKind::ReturnsNonnullAttribute) &&
CurCodeDecl && CurCodeDecl->getAttr<ReturnsNonNullAttr>()))