A tweak to the previous commit to ensure that we don't try to use -> on a NULL pointer (should not happen but better be safe than sorry)
llvm-svn: 165272
This commit is contained in:
parent
e6f1b76fef
commit
4d6cd886f5
|
@ -104,7 +104,9 @@ public:
|
|||
virtual bool
|
||||
ResolveValue (Scalar &scalar)
|
||||
{
|
||||
return m_parent->ResolveValue(scalar);
|
||||
if (m_parent)
|
||||
return m_parent->ResolveValue(scalar);
|
||||
return false;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue