diff options
author | Kevin Enderby <enderby@apple.com> | 2014-10-24 22:39:40 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2014-10-24 22:39:40 +0000 |
commit | 2813f496d98f3e6d2c9c2774601999e147af34ef (patch) | |
tree | c73a9ccdc2add188e187092dfb54f09e5197a5d4 /llvm/lib/Bitcode/Reader/BitcodeReader.h | |
parent | 4183dbcc0327e9ef54447143c0073aa2593a5618 (diff) | |
download | bcm5719-llvm-2813f496d98f3e6d2c9c2774601999e147af34ef.tar.gz bcm5719-llvm-2813f496d98f3e6d2c9c2774601999e147af34ef.zip |
Fix a Mach-O assembler segfault for a subtraction expression with an undefined symbol.
In a Mach-O object file a relocatable expression of the form
SymbolA - SymbolB + constant is allowed when both symbols are
defined in a section. But when either symbol is undefined it
is an error.
The code was crashing when it had an undefined symbol in this case.
And should have printed a error message using the location information
in the relocation entry.
rdar://18678402
llvm-svn: 220599
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions