mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 23:26:05 +00:00
[DebugInfo] Prevent inlining in NRVO-string test cases
Since the new pass manager has been enabled by default these tests had their -O1 variations failing due to the tested functions being inlined. This just adds no_inline to the respective code similar to what we did in other tests (e.g. aa56b30014d96700b2fc945be11866789f341d38 ).
This commit is contained in:
parent
0b448854da
commit
a874d182c6
@ -25,7 +25,7 @@ struct string {
|
||||
~string() {}
|
||||
int i = 0;
|
||||
};
|
||||
string get_string() {
|
||||
string __attribute__((noinline)) get_string() {
|
||||
string unused;
|
||||
string output = 3;
|
||||
stop(); // DexLabel('string-nrvo')
|
||||
@ -37,7 +37,7 @@ struct string2 {
|
||||
string2(string2 &&other) { i = other.i; }
|
||||
int i;
|
||||
};
|
||||
string2 get_string2() {
|
||||
string2 __attribute__((noinline)) get_string2() {
|
||||
string2 output;
|
||||
output.i = 5;
|
||||
some_function(output.i);
|
||||
|
@ -16,7 +16,7 @@ struct string {
|
||||
~string() {}
|
||||
int i = 0;
|
||||
};
|
||||
string get_string() {
|
||||
string __attribute__((noinline)) get_string() {
|
||||
string unused;
|
||||
string result = 3;
|
||||
// DEBUGGER: break 23
|
||||
@ -29,7 +29,7 @@ struct string2 {
|
||||
string2(string2 &&other) { i = other.i; }
|
||||
int i;
|
||||
};
|
||||
string2 get_string2() {
|
||||
string2 __attribute__((noinline)) get_string2() {
|
||||
string2 result;
|
||||
result.i = 5;
|
||||
some_function(result.i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user