[Lldb-commits] [lldb] c598396 - Speculatively fix the lldb build
Aaron Ballman via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 28 10:40:00 PDT 2022
Author: Aaron Ballman
Date: 2022-09-28T13:39:48-04:00
New Revision: c5983963de7a6fb4dce0c7232905cc66c7b52030
URL: https://github.com/llvm/llvm-project/commit/c5983963de7a6fb4dce0c7232905cc66c7b52030
DIFF: https://github.com/llvm/llvm-project/commit/c5983963de7a6fb4dce0c7232905cc66c7b52030.diff
LOG: Speculatively fix the lldb build
This should fix the issues found by:
https://lab.llvm.org/buildbot/#/builders/68/builds/40172
Added:
Modified:
lldb/unittests/Symbol/TestTypeSystemClang.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Symbol/TestTypeSystemClang.cpp b/lldb/unittests/Symbol/TestTypeSystemClang.cpp
index 4da17cf3610cd..23594340e71b3 100644
--- a/lldb/unittests/Symbol/TestTypeSystemClang.cpp
+++ b/lldb/unittests/Symbol/TestTypeSystemClang.cpp
@@ -726,21 +726,22 @@ TEST_F(TestTypeSystemClang, TestGetTypeClassDeclType) {
TEST_F(TestTypeSystemClang, TestGetTypeClassTypeOf) {
clang::ASTContext &ctxt = m_ast->getASTContext();
- QualType t = ctxt.getTypeOfType(makeConstInt(ctxt));
+ QualType t = ctxt.getTypeOfType(makeConstInt(ctxt), TypeOfKind::Qualified);
EXPECT_EQ(lldb::eTypeClassBuiltin, m_ast->GetTypeClass(t.getAsOpaquePtr()));
}
TEST_F(TestTypeSystemClang, TestGetTypeClassTypeOfExpr) {
clang::ASTContext &ctxt = m_ast->getASTContext();
auto *nullptr_expr = new (ctxt) CXXNullPtrLiteralExpr(ctxt.NullPtrTy, SourceLocation());
- QualType t = ctxt.getTypeOfExprType(nullptr_expr);
+ QualType t = ctxt.getTypeOfExprType(nullptr_expr, TypeOfKind::Qualified);
EXPECT_EQ(lldb::eTypeClassBuiltin, m_ast->GetTypeClass(t.getAsOpaquePtr()));
}
TEST_F(TestTypeSystemClang, TestGetTypeClassNested) {
clang::ASTContext &ctxt = m_ast->getASTContext();
- QualType t_base = ctxt.getTypeOfType(makeConstInt(ctxt));
- QualType t = ctxt.getTypeOfType(t_base);
+ QualType t_base =
+ ctxt.getTypeOfType(makeConstInt(ctxt), TypeOfKind::Qualified);
+ QualType t = ctxt.getTypeOfType(t_base, TypeOfKind::Qualified);
EXPECT_EQ(lldb::eTypeClassBuiltin, m_ast->GetTypeClass(t.getAsOpaquePtr()));
}
More information about the lldb-commits
mailing list