aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/MultiplexExternalSemaSource.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-06-23 16:01:58 -0500
committerGitHub <noreply@github.com>2025-06-23 16:01:58 -0500
commit329ae868cbc055b25497d6fa8bfa8388cf2afa91 (patch)
treead41200b9d549f7d3e20a4e6b260c958758a57c2 /clang/lib/Sema/MultiplexExternalSemaSource.cpp
parentd715ecba797c538637005ee4df7e4c94767d4386 (diff)
downloadllvm-329ae868cbc055b25497d6fa8bfa8388cf2afa91.zip
llvm-329ae868cbc055b25497d6fa8bfa8388cf2afa91.tar.gz
llvm-329ae868cbc055b25497d6fa8bfa8388cf2afa91.tar.bz2
Revert "[Modules] Record whether VarDecl initializers contain side effects" (#145407)
Reverts llvm/llvm-project#143739 because it triggers an assert: ``` Assertion failed: (!isNull() && "Cannot retrieve a NULL type pointer"), function getCommonPtr, file Type.h, line 952. ```
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
-rw-r--r--clang/lib/Sema/MultiplexExternalSemaSource.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Sema/MultiplexExternalSemaSource.cpp b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
index 9f19f13..fbfb242 100644
--- a/clang/lib/Sema/MultiplexExternalSemaSource.cpp
+++ b/clang/lib/Sema/MultiplexExternalSemaSource.cpp
@@ -115,14 +115,6 @@ bool MultiplexExternalSemaSource::wasThisDeclarationADefinition(
return false;
}
-bool MultiplexExternalSemaSource::hasInitializerWithSideEffects(
- const VarDecl *VD) const {
- for (const auto &S : Sources)
- if (S->hasInitializerWithSideEffects(VD))
- return true;
- return false;
-}
-
bool MultiplexExternalSemaSource::FindExternalVisibleDeclsByName(
const DeclContext *DC, DeclarationName Name,
const DeclContext *OriginalDC) {