Skip to content

Commit 81b9224

Browse files
fogsong233vgvassilev
authored andcommitted
for assert
1 parent d311dfd commit 81b9224

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/ClangPlugin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
#include <algorithm>
4040
#include <cassert>
41-
#include <clang/AST/DeclarationName.h>
4241
#include <cstdlib> // for getenv
4342
#include <iostream> // for std::cerr
4443
#include <memory>
@@ -467,8 +466,9 @@ void InitTimers();
467466
// out-of-tree and hybrid. When we pick up the wrong header files we
468467
// usually see a problem with C.Idents not being properly initialized.
469468
// This assert tries to catch such situations heuristically.
470-
assert(&C.Idents == &m_CI.getPreprocessor().getIdentifierTable()
471-
&& "Miscompiled?");
469+
assert(&m_CI.getASTContext().Idents ==
470+
&m_CI.getPreprocessor().getIdentifierTable() &&
471+
"Miscompiled?");
472472
NamespaceDecl* CladNS =
473473
utils::LookupNSD(m_CI.getSema(), "clad", /*shouldExist=*/false);
474474
m_HasRuntime = (CladNS != nullptr);

0 commit comments

Comments
 (0)