mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
[Object] Fix a bug in a condition introduced in r226217 - visibility can't be
both hidden and default. Bug found by inspection by Rafael Espindola. No test: As discussed in the commit message for r226217 we don't have a good way to test this yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a78a64776
commit
bdf296fb06
@ -185,7 +185,7 @@ protected:
|
|||||||
// visibility is either DEFAULT or PROTECTED. All other symbols are not
|
// visibility is either DEFAULT or PROTECTED. All other symbols are not
|
||||||
// exported.
|
// exported.
|
||||||
if ((Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK) &&
|
if ((Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK) &&
|
||||||
(Visibility == ELF::STV_DEFAULT && Visibility == ELF::STV_PROTECTED))
|
(Visibility == ELF::STV_DEFAULT || Visibility == ELF::STV_PROTECTED))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user