projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
866aa0d
)
Revert "MC/MachO: Fix possible null pointer dereference."
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Tue, 10 Aug 2010 16:00:49 +0000
(16:00 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Tue, 10 Aug 2010 16:00:49 +0000
(16:00 +0000)
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
lib/MC/MachObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MachObjectWriter.cpp
b/lib/MC/MachObjectWriter.cpp
index d67dbc01e61cf2d4295c10ce81b40b02d3667152..7ca09511bdebd2515c3db3a83ce80d0af6c04ec1 100644
(file)
--- 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;