systemc: Add an error check to sc_gen_unique_name.
authorGabe Black <gabeblack@google.com>
Fri, 5 Oct 2018 22:38:23 +0000 (15:38 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:57:04 +0000 (00:57 +0000)
commitc701d88756fa135c2016cbf968970d37ec67e26c
tree415f6994c734219f388a4231499691e7da6be5af
parent834846f80259522612d966657d68db3fb10ea90c
systemc: Add an error check to sc_gen_unique_name.

Accellera checks for a null pointer, and a test tries using that input.

Change-Id: I0f098f53de37ebbe481ea46e61fc0a9a404c29db
Reviewed-on: https://gem5-review.googlesource.com/c/13302
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/sc_module.cc