Skip to content

Commit 19452e9

Browse files
committed
[vpr][base] set type name to nullptr if type is null
1 parent 3e52cd6 commit 19452e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/base/setup_vib_grid.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,9 @@ static void set_vib_grid_block_type(int priority,
302302

303303
if (priority < max_priority_type_loc.priority) {
304304
//Lower priority, do not override
305+
std::string type_name = (type == nullptr) ? "nullptr" : type->get_name();
305306
std::string msg = vtr::string_fmt("Not creating block '%s' at (%zu,%zu) since overlaps block '%s' at (%zu,%zu) with higher priority (%d > %d)\n",
306-
type->get_name().c_str(), x_root, y_root, max_priority_type_loc.type->get_name().c_str(), max_priority_type_loc.x, max_priority_type_loc.y,
307+
type_name.c_str(), x_root, y_root, max_priority_type_loc.type->get_name().c_str(), max_priority_type_loc.x, max_priority_type_loc.y,
307308
max_priority_type_loc.priority, priority);
308309
VTR_LOG_DEBUG(msg.c_str());
309310
return;

0 commit comments

Comments
 (0)