llvm-project/lldb/source/Plugins
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
..
ABI [ABI] Remove dead code that was copy-pasted all around. NFCI. 2017-11-18 00:54:31 +00:00
Architecture Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
Disassembler Rename Error -> Status. 2017-05-12 04:51:55 +00:00
DynamicLoader Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
ExpressionParser [Expression parser] Remove logging of field that is no longer in clang's TargetOptions struct. 2017-11-20 17:24:47 +00:00
Instruction Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
InstrumentationRuntime Upstreaming a patch from Github: When evaluation user expressions, ignore InstrumentationRuntime breakpoints. (#235) 2017-07-13 04:35:27 +00:00
JITLoader Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Language Fix assertion in ClangASTContext 2017-11-30 10:16:54 +00:00
LanguageRuntime Fix some warnings found by ToT clang 2017-11-02 21:35:26 +00:00
MemoryHistory Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ObjectContainer Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
ObjectFile Fix alignment of arm64 fpu register context structure 2017-11-16 00:50:29 +00:00
OperatingSystem Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
Platform Fix netbsd, freebsd and osx builds for ArchSpec move 2017-11-13 16:47:37 +00:00
Process elf-core: Convert remaining register context to use register set maps 2017-11-28 11:10:23 +00:00
ScriptInterpreter Revert r317182 for https://reviews.llvm.org/D39128 2017-11-02 03:17:07 +00:00
StructuredData Update StructuredData::String to return StringRefs. 2017-05-12 05:49:54 +00:00
SymbolFile refactor: Simplify loop with DWARFCompileUnit::Extract 2017-11-30 05:49:02 +00:00
SymbolVendor Add support for the DWP debug info format 2017-08-25 13:56:14 +00:00
SystemRuntime Move StructuredData from Core to Utility 2017-06-27 10:45:31 +00:00
UnwindAssembly Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
CMakeLists.txt Move StopInfoOverride callback to the new architecture plugin 2017-10-25 21:05:31 +00:00