MC/MachO: Fix possible null pointer dereference.

Discovered by Microsoft Visual Studio 2010 Code Analysis.

llvm-svn: 110575
This commit is contained in:
Michael J. Spencer 2010-08-09 15:28:05 +00:00
parent cc4a9670d3
commit 4a5167c836
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ public:
// FIXME: Currently, these are never generated (see code below). I cannot
// find a case where they are actually emitted.
Type = RIT_Vanilla;
} else {
} else if (SD) {
// Check whether we need an external or internal relocation.
if (doesSymbolRequireExternRelocation(SD)) {
IsExtern = 1;