[PATCH] D109654: [clang] disable implicit moves when not in CPlusPLus
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 13 12:36:30 PDT 2021
NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.
Thanks a lot!! This seems to take care of my issues.
Can you also include the following test case somewhere into, say, `test/Analysis/blocks-nrvo.c`? It crashes without this patch.
// RUN: %clang_analyze_cc1 -w -analyzer-checker=core -fblocks -verify %s
// expected-no-diagnostics
typedef struct {
int x;
} S;
void foo() {
^{
S s;
return s; // no-crash
};
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109654/new/
https://reviews.llvm.org/D109654
More information about the cfe-commits
mailing list