Fixed Variable::GetDecl() and Variable::GetDeclContext() to check the "Type *" before...
authorGreg Clayton <gclayton@apple.com>
Tue, 12 Apr 2016 00:06:27 +0000 (00:06 +0000)
committerGreg Clayton <gclayton@apple.com>
Tue, 12 Apr 2016 00:06:27 +0000 (00:06 +0000)
commita15942ff051e378d5af5f399a827ad1051112c21
tree97b1c8505a9606fb3d097097cd488c74c2acb8e4
parent4f43cfd2c2b8cfe63c1bb5d6dfbdf8ac6f9c4e76
Fixed Variable::GetDecl() and Variable::GetDeclContext() to check the "Type *" before using it so we don't crash if a variable's type can't be realized which happens more often recently due to -gmodules.

<rdar://problem/25612626>

llvm-svn: 266023
lldb/source/Symbol/Variable.cpp