forked from OSchip/llvm-project
MC/MachO: Fix possible null pointer dereference.
Discovered by Microsoft Visual Studio 2010 Code Analysis. llvm-svn: 110575
This commit is contained in:
parent
cc4a9670d3
commit
4a5167c836
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue