aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorsmanna12 <soumi.manna@intel.com>2024-03-26 11:48:37 -0500
committerGitHub <noreply@github.com>2024-03-26 11:48:37 -0500
commite75989e93063d1ac2626c3478c28ca364e04ef28 (patch)
tree85178b7b392e81e28ff2fdfc8de5feb5e3607cf0 /clang/lib/CodeGen/CodeGenFunction.cpp
parent7860f970666f46184ad740db48a69882d62e64fc (diff)
downloadllvm-e75989e93063d1ac2626c3478c28ca364e04ef28.zip
llvm-e75989e93063d1ac2626c3478c28ca364e04ef28.tar.gz
llvm-e75989e93063d1ac2626c3478c28ca364e04ef28.tar.bz2
[NFC][Clang] Fix potential dereferencing of nullptr (#85944)
This patch replaces getAs<> with castAs<> to resolve potential static analyzer bugs for 1. Dereferencing a pointer issue with nullptr FPT when calling ResolveExceptionSpec() in checkEscapingByref(clang::VarDecl *, clang::Sema &). 3. Dereferencing a pointer issue with nullptr ElementTy->getAs() when calling getElementType() in clang::Sema::SemaBuiltinFPClassification(clang::CallExpr *, unsigned int). 4. Dereferencing a pointer issue with nullptr ConvType->getAs() when calling getKeyword() in clang::Sema::ActOnConversionDeclarator(clang::CXXConversionDecl *).
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions