summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-08-10 16:00:49 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-08-10 16:00:49 +0000
commitb0f3b3e7de5068e04754fe1a454a754328233346 (patch)
tree52553b809cf5525cf5802266d9c55808a9710e49 /lib
parent866aa0d742b7bc9811fd1b45507af999c605205a (diff)
downloadllvm-b0f3b3e7de5068e04754fe1a454a754328233346.tar.gz
llvm-b0f3b3e7de5068e04754fe1a454a754328233346.tar.bz2
llvm-b0f3b3e7de5068e04754fe1a454a754328233346.tar.xz
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')
-rw-r--r--lib/MC/MachObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index d67dbc01e6..7ca09511bd 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;