Any debug info symbol is only valid if atleast one compile unit is seen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-01-16 01:49:46 +00:00
parent 2836c283bb
commit 61c6bf37ef

View File

@ -3083,6 +3083,10 @@ public:
/// ValidDebugInfo - Return true if V represents valid debug info value.
bool ValidDebugInfo(Value *V) {
if (!shouldEmit)
return false;
GlobalVariable *GV = getGlobalVariable(V);
if (!GV)
return false;