diff --git a/compiler-rt/lib/cilkscale/shadow_stack.h b/compiler-rt/lib/cilkscale/shadow_stack.h index 74eabc0fad1d..e9d356abcb71 100644 --- a/compiler-rt/lib/cilkscale/shadow_stack.h +++ b/compiler-rt/lib/cilkscale/shadow_stack.h @@ -3,7 +3,14 @@ #define INCLUDED_SHADOW_STACK_H #include "cilkscale_timer.h" + +#ifndef SERIAL_TOOL +#define SERIAL_TOOL 1 +#endif + +#if !SERIAL_TOOL #include +#endif #ifndef DEFAULT_STACK_SIZE #define DEFAULT_STACK_SIZE 64 @@ -94,12 +101,14 @@ struct shadow_stack_t { bot(std::move(move.bot)) {} +#if !SERIAL_TOOL // Move-in constructor shadow_stack_t(cilk::move_in_wrapper w) { capacity = w.value().capacity; frames = w.value().frames; bot = w.value().bot; } +#endif ~shadow_stack_t() { if (frames)