aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorPavel Samolysov <samolisov@gmail.com>2024-06-11 05:30:50 +0300
committerGitHub <noreply@github.com>2024-06-11 05:30:50 +0300
commit69e9e779b783bb34a3c1f73c93ca63ee6b89ab09 (patch)
treee7786893fa62faab929d98e0c4dfd853257abba5 /clang/lib/CodeGen/CodeGenFunction.cpp
parentcb63abca27e1813ae58ded466cd81ba3952ab888 (diff)
downloadllvm-69e9e779b783bb34a3c1f73c93ca63ee6b89ab09.zip
llvm-69e9e779b783bb34a3c1f73c93ca63ee6b89ab09.tar.gz
llvm-69e9e779b783bb34a3c1f73c93ca63ee6b89ab09.tar.bz2
[clang] Replace X && isa<Y>(X) with isa_and_nonnull<Y>(X). NFC (#94987)
This addresses a clang-tidy suggestion.
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 f0345f3..f84b3b08 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2951,7 +2951,7 @@ void CodeGenFunction::emitAlignmentAssumptionCheck(
SourceLocation SecondaryLoc, llvm::Value *Alignment,
llvm::Value *OffsetValue, llvm::Value *TheCheck,
llvm::Instruction *Assumption) {
- assert(Assumption && isa<llvm::CallInst>(Assumption) &&
+ assert(isa_and_nonnull<llvm::CallInst>(Assumption) &&
cast<llvm::CallInst>(Assumption)->getCalledOperand() ==
llvm::Intrinsic::getDeclaration(
Builder.GetInsertBlock()->getParent()->getParent(),