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:
Enrico Granata 2012-10-04 23:17:01 +00:00
parent e6f1b76fef
commit 4d6cd886f5
1 changed files with 3 additions and 1 deletions

View File

@ -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: