| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Reland "[lldb] Add support for using integral const static data members in the expression evaluator" Reland 486787210d which broke tests on Arm and Windows. * Windows -- on Windows const static data members with no out-of-class definition do have valid addresses, in constract to other platforms (Linux, macos) where they don't. Adjusted the test to expect success on Windows and failure on other platforms. * Arm -- int128 is not available on 32-bit ARM, so disable the test for this architecture. | 3 年前 | |
[LLDB][ClangExpression] Fix initialization of static enum alias members IntegerLiteral::Create operates on integer types. For that reason when we parse DWARF into an AST, when we encounter a constant initialized enum member variable, we try to determine the underlying integer type before creating the IntegerLiteral. However, we currently don't desugar the type and for enum typedefs dyn_cast<EnumType> fails. In debug builds this triggers following assert: Assertion failed: (type->isIntegerType() && "Illegal type in IntegerLiteral"), function IntegerLiteral, file Expr.cpp, line 892 This patch turns the dyn_cast<EnumType> into a getAs<EnumType> which dyn_casts the canonical type, allowing us to get to the underlying integer type. **Testing** * API test * Manual repro is fixed Differential Revision: https://reviews.llvm.org/D130213 | 3 年前 | |
[LLDB][ClangExpression] Fix initialization of static enum alias members IntegerLiteral::Create operates on integer types. For that reason when we parse DWARF into an AST, when we encounter a constant initialized enum member variable, we try to determine the underlying integer type before creating the IntegerLiteral. However, we currently don't desugar the type and for enum typedefs dyn_cast<EnumType> fails. In debug builds this triggers following assert: Assertion failed: (type->isIntegerType() && "Illegal type in IntegerLiteral"), function IntegerLiteral, file Expr.cpp, line 892 This patch turns the dyn_cast<EnumType> into a getAs<EnumType> which dyn_casts the canonical type, allowing us to get to the underlying integer type. **Testing** * API test * Manual repro is fixed Differential Revision: https://reviews.llvm.org/D130213 | 3 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 |