base: Do not dereference NULL in CompoundFlag creation
authorAndreas Hansson <andreas.hansson@arm.com>
Wed, 11 Feb 2015 15:23:23 +0000 (10:23 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Wed, 11 Feb 2015 15:23:23 +0000 (10:23 -0500)
commitc9b8616c515f7689baf0706a9c17d3f9d625ef04
treec4fff2a4328144c81860d92080c7a5a22f39d136
parent431a6d708b4346ec81bade79033cc34308a5144f
base: Do not dereference NULL in CompoundFlag creation

This patch fixes the CompoundFlag constructor, ensuring that it does
not dereference NULL. Doing so has undefined behaviuor, and both clang
and gcc's undefined-behaviour sanitiser was rather unhappy.
src/SConscript
src/base/debug.hh