There an option: EvaluateExpressionOptions::SetResultIsInternal to indicate whether the result number should be returned to the pool or not. It got broken when the PersistentExpressionState was refactored. This fixes the issue and provides a test of the behavior. Differential Revision: https://reviews.llvm.org/D76532
19 lines
242 B
C
19 lines
242 B
C
#include <stdio.h>
|
|
|
|
int
|
|
call_me(int input)
|
|
{
|
|
return input;
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
int value = call_me(0); // Set a breakpoint here
|
|
while (value < 10)
|
|
{
|
|
printf("Add conditions to this breakpoint: %d.\n", value++);
|
|
}
|
|
return 0;
|
|
}
|