diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-08-10 16:00:49 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-08-10 16:00:49 +0000 |
| commit | 7111fff76ae8146d7a7ca226105651710880cffb (patch) | |
| tree | 52553b809cf5525cf5802266d9c55808a9710e49 /lib/MC/MachObjectWriter.cpp | |
| parent | f7b7921abe294ed5164e55318b4c34fcd130b36e (diff) | |
| download | external_llvm-7111fff76ae8146d7a7ca226105651710880cffb.zip external_llvm-7111fff76ae8146d7a7ca226105651710880cffb.tar.gz external_llvm-7111fff76ae8146d7a7ca226105651710880cffb.tar.bz2 | |
Revert "MC/MachO: Fix possible null pointer dereference."
This reverts commit 110575.
Target.isAbsolute() is true if SD would be null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
| -rw-r--r-- | lib/MC/MachObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index d67dbc0..7ca0951 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -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 if (SD) { + } else { // Check whether we need an external or internal relocation. if (doesSymbolRequireExternRelocation(SD)) { IsExtern = 1; |
