diff --git a/src/ID.h b/src/ID.h index 53b4b44fce..75b849b5c1 100644 --- a/src/ID.h +++ b/src/ID.h @@ -100,6 +100,8 @@ public: void SetOption(); bool IsOption() const { return is_option; } + + void SetBlank() { is_blank = true; } bool IsBlank() const { return is_blank; }; void SetEnumConst() { is_enum_const = true; } diff --git a/src/script_opt/Reduce.cc b/src/script_opt/Reduce.cc index 27b0753efd..9ed76c31a7 100644 --- a/src/script_opt/Reduce.cc +++ b/src/script_opt/Reduce.cc @@ -741,6 +741,9 @@ IDPtr Reducer::GenLocal(const IDPtr& orig) { local_id->SetType(orig->GetType()); local_id->SetAttrs(orig->GetAttrs()); + if ( orig->IsBlank() ) + local_id->SetBlank(); + if ( orig->GetOptInfo()->IsTemp() ) local_id->GetOptInfo()->SetTemp();