Skip to content

Commit a778a19

Browse files
committed
Add false negative comments
1 parent f938dd5 commit a778a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Analysis/stack-addr-ps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,10 @@ void TakesIntAndPtr(int, int *);
10751075
void PassAddressOfLocal(int a, int *b) {
10761076
int c;
10771077
[[clang::musttail]] return TakesIntAndPtr(0, &c); // expected-warning {{address of stack memory associated with local variable 'c' pass\
1078-
ed to musttail function}}
1078+
ed to musttail function}} False-negative on CSA
10791079
}
10801080
void PassAddressOfParam(int a, int *b) {
10811081
[[clang::musttail]] return TakesIntAndPtr(0, &a); // expected-warning {{address of stack memory associated with parameter 'a' passed to\
1082-
musttail function}}
1082+
musttail function}} False-negative on CSA
10831083
}
10841084
} // namespace with_attr_musttail

0 commit comments

Comments
 (0)