[all-commits] [llvm/llvm-project] 320647: [lldb] Pass a valid SourceLocation to Sema::Requir...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Wed Feb 12 02:23:18 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 320647c02ae9827cae0824c6aec2bcdfcf482e44
https://github.com/llvm/llvm-project/commit/320647c02ae9827cae0824c6aec2bcdfcf482e44
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2020-02-12 (Wed, 12 Feb 2020)
Changed paths:
M lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
Log Message:
-----------
[lldb] Pass a valid SourceLocation to Sema::RequireCompleteType in ASTResultSynthesizer
Sema::RequireCompleteTypeImpl is supposed to have an assert that checks that the
SourceLocation that is passed in is always valid. It's currently commented out, but
as soon as this assert goes active, nearly every LLDB expression will start crashing as
we always pass in an invalid SourceLocation from the ASTResultSynthesizer.
This patch just passes in the valid SourceLocation of the expression (which is
the SourceLocation where the complete type is required) to prevent that from happening.
More information about the All-commits
mailing list