| Index: src/IceThreading.cpp
|
| diff --git a/src/IceThreading.cpp b/src/IceThreading.cpp
|
| index 5576abb2ded87b45f432e446ca5703b6ce7fdafc..5cdaaa80bf6bd5e3b6d9f6e43adcecf7a6faa9e0 100644
|
| --- a/src/IceThreading.cpp
|
| +++ b/src/IceThreading.cpp
|
| @@ -30,8 +30,15 @@ EmitterWorkItem::EmitterWorkItem(uint32_t Seq, Cfg *F)
|
| : Sequence(Seq), Kind(WI_Cfg), GlobalInits(nullptr), Function(nullptr),
|
| RawFunc(F) {}
|
|
|
| +void EmitterWorkItem::setGlobalInits(
|
| + std::unique_ptr<VariableDeclarationList> GloblInits) {
|
| + assert(getKind() == WI_Asm || getKind() == WI_Cfg);
|
| + GlobalInits = std::move(GloblInits);
|
| +}
|
| +
|
| std::unique_ptr<VariableDeclarationList> EmitterWorkItem::getGlobalInits() {
|
| - assert(getKind() == WI_GlobalInits);
|
| + assert(getKind() == WI_GlobalInits || getKind() == WI_Asm ||
|
| + getKind() == WI_Cfg);
|
| return std::move(GlobalInits);
|
| }
|
|
|
|
|