mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 01:24:35 +00:00
MC/MachO: Fix possible null pointer dereference.
Discovered by Microsoft Visual Studio 2010 Code Analysis. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -835,7 +835,7 @@ public:
|
|||||||
// FIXME: Currently, these are never generated (see code below). I cannot
|
// FIXME: Currently, these are never generated (see code below). I cannot
|
||||||
// find a case where they are actually emitted.
|
// find a case where they are actually emitted.
|
||||||
Type = RIT_Vanilla;
|
Type = RIT_Vanilla;
|
||||||
} else {
|
} else if (SD) {
|
||||||
// Check whether we need an external or internal relocation.
|
// Check whether we need an external or internal relocation.
|
||||||
if (doesSymbolRequireExternRelocation(SD)) {
|
if (doesSymbolRequireExternRelocation(SD)) {
|
||||||
IsExtern = 1;
|
IsExtern = 1;
|
||||||
|
Reference in New Issue
Block a user