diff --git a/src/Scope.cc b/src/Scope.cc index d4a2d5f1b5..52dda58033 100644 --- a/src/Scope.cc +++ b/src/Scope.cc @@ -22,7 +22,7 @@ Scope::Scope(IDPtr id, std::unique_ptr> al) { return_type = nullptr; - if ( id ) + if ( scope_id ) { const auto& id_type = scope_id->GetType(); @@ -31,7 +31,7 @@ Scope::Scope(IDPtr id, std::unique_ptr> al) else if ( id_type->Tag() != TYPE_FUNC ) reporter->InternalError("bad scope id"); - FuncType* ft = id->GetType()->AsFuncType(); + FuncType* ft = scope_id->GetType()->AsFuncType(); return_type = ft->Yield(); } }