llvm-project/lldb/unittests/Symbol
Pavel Labath f59056ff93 Fix assertion in ClangASTContext
Summary:
llvm::APSInt(0) asserts because it creates an int with bit-width 0 and
not (as I thought) a value 0.

Theoretically it should be sufficient to change this to APSInt(1), as
the intention there was that the value of the first argument should be
ignored if the type is invalid, but that would look dodgy.

Instead, I use llvm::Optional to denote an invalid value and use a
special struct instead of a std::pair, to reduce typing and increase
clarity.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D40615

llvm-svn: 319414
2017-11-30 10:16:54 +00:00
..
Inputs Add debug_frame section support 2017-06-27 11:16:26 +00:00
CMakeLists.txt [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
TestClangASTContext.cpp Fix assertion in ClangASTContext 2017-11-30 10:16:54 +00:00
TestDWARFCallFrameInfo.cpp cmake + xcode: prevent gtests from using includes from project root 2017-10-03 21:20:18 +00:00
TestType.cpp Improve Type::GetTypeScopeAndBasenameHelper and add unit tests 2017-01-10 11:13:59 +00:00