summaryrefslogtreecommitdiffstats
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
commit18bf25f1892aed1d0bb986460f5461a2f8cc4548 (patch)
tree2f4b4d83a91059c1e87cf7a49e8beb3c2e5fa82d
parentd1e241a4c37a7abf63454ce037ee264b0d18bbe4 (diff)
downloadbcm5719-llvm-18bf25f1892aed1d0bb986460f5461a2f8cc4548.tar.gz
bcm5719-llvm-18bf25f1892aed1d0bb986460f5461a2f8cc4548.zip
Revert "MC/MachO: Fix possible null pointer dereference."
This reverts commit 110575. Target.isAbsolute() is true if SD would be null. llvm-svn: 110683
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index d67dbc01e61..7ca09511bde 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud