diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2021-09-12 01:11:02 +0200 |
---|---|---|
committer | Matheus Izvekov <mizvekov@gmail.com> | 2021-09-14 11:29:47 +0200 |
commit | 2d6829bbbe6877920d9be1db93b9f3fc85b43d10 (patch) | |
tree | 1eeba9dbeed39e179d67c97026c6e2a77a3fab42 /clang/lib/Lex/ModuleMap.cpp | |
parent | f28740541942ea4d68b968af279bcd6793732f00 (diff) | |
download | llvm-2d6829bbbe6877920d9be1db93b9f3fc85b43d10.zip llvm-2d6829bbbe6877920d9be1db93b9f3fc85b43d10.tar.gz llvm-2d6829bbbe6877920d9be1db93b9f3fc85b43d10.tar.bz2 |
[clang] disable implicit moves when not in CPlusPLus
See PR51842.
This fixes an assert firing in the static analyzer, triggered by implicit moves
in blocks in C mode:
This also simplifies the AST a little bit when compiling non C++ code,
as the xvalue implicit casts are not inserted.
We keep and test that the nrvo flag is still being set on the VarDecls,
as that is still a bit beneficial while not really making anything
more complicated.
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Reviewed By: NoQ
Differential Revision: https://reviews.llvm.org/D109654
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions