aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2018-03-13 01:40:00 +0000
committerDavide Italiano <davide@freebsd.org>2018-03-13 01:40:00 +0000
commitd5bbaa6688dd51023170eaeae261b026e54bd2f2 (patch)
tree7e3fb3eb6f1c0e1c52192e8794b58514e38c2c32 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent80058e30cc3abb7240eaa4541aab5ae55af94935 (diff)
downloadllvm-d5bbaa6688dd51023170eaeae261b026e54bd2f2.zip
llvm-d5bbaa6688dd51023170eaeae261b026e54bd2f2.tar.gz
llvm-d5bbaa6688dd51023170eaeae261b026e54bd2f2.tar.bz2
[ExpressionParser] Fix crash when evaluating invalid expresssions.
Typical example, illformed comparisons (operator== where LHS and RHS are not compatible). If a symbol matched `operator==` in any of the object files lldb inserted a generic function declaration in the ASTContext on which Sema operates. Maintaining the AST context invariants is fairly tricky and sometimes resulted in crashes inside clang (or assertions hit). The real reason why this feature exists in the first place is that of allowing users to do something like: (lldb) call printf("patatino") even if the debug informations for printf() is not available. Eventually, we might reconsider this feature in its entirety, but for now we can't remove it as it would break a bunch of users. Instead, try to limit it to non-C++ symbols, where getting the invariants right is hopefully easier. Now you can't do in lldb anymore (lldb) call _Zsomethingsomething(1,2,3) but that doesn't seem to be such a big loss. <rdar://problem/35645893> llvm-svn: 327356
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions