Skip to content

Commit c405f67

Browse files
committed
fix bug
1 parent 83aa36c commit c405f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/ir/core/storage_manager.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct ParametricStorageManager {
3030

3131
~ParametricStorageManager() {
3232
IR_ENFORCE(
33-
destroy_,
33+
destroy_ != nullptr,
3434
"The desturctor of ParametricStorageManager should not be nullptr.");
3535
for (const auto &instance : parametric_instances_) {
3636
destroy_(instance.second);

0 commit comments

Comments
 (0)