[clang] 6069eb9 - [clang][bytecode][NFC] Remove redundant isInvalidDecl() check (#215546)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 21:06:31 PDT 2026
Author: Timm Baeder
Date: 2026-08-12T06:06:26+02:00
New Revision: 6069eb9e876d4f2dc5a5d8a45992729e02a62b39
URL: https://github.com/llvm/llvm-project/commit/6069eb9e876d4f2dc5a5d8a45992729e02a62b39
DIFF: https://github.com/llvm/llvm-project/commit/6069eb9e876d4f2dc5a5d8a45992729e02a62b39.diff
LOG: [clang][bytecode][NFC] Remove redundant isInvalidDecl() check (#215546)
This is already checked earlier in the same function.
Added:
Modified:
clang/lib/AST/ByteCode/Interp.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp
index ece2e71408731..5f2884d09b35e 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -1076,10 +1076,6 @@ static bool diagnoseCallableDecl(InterpState &S, CodePtr OpPC,
return false;
}
- // Invalid decls have been diagnosed before.
- if (DiagDecl->isInvalidDecl())
- return false;
-
// If this function is not constexpr because it is an inherited
// non-constexpr constructor, diagnose that directly.
const auto *CD = dyn_cast<CXXConstructorDecl>(DiagDecl);
More information about the cfe-commits
mailing list