aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-01-22 23:07:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-01-22 23:07:19 +0000
commit8c7bd6ac1a32e667d3f57682d6c0f3e4e6c7a97f (patch)
tree6c6c070d3beaf298981f9d1266408aa6940e5aad /llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
parenta5adf489b74dc8cc90340d0c304e30346dcf5cf2 (diff)
downloadllvm-8c7bd6ac1a32e667d3f57682d6c0f3e4e6c7a97f.zip
llvm-8c7bd6ac1a32e667d3f57682d6c0f3e4e6c7a97f.tar.gz
llvm-8c7bd6ac1a32e667d3f57682d6c0f3e4e6c7a97f.tar.bz2
Don't forget about a builtin if we're about to redeclare it and we couldn't
create an implicit declaration of it (because some type it depends on is unavailable). This had the effect of causing us to not implicitly give it the right attributes. It turns out that glibc's __sigsetjmp is declared before sigjmp_buf is declared, and this resulted in us not implicitly giving it __attribute__((returns_twice)), which in turn resulted in miscompiles in any C code calling glibc's sigsetjmp. (See also the vaguely-related sourceware.org/PR4662.) llvm-svn: 199850
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions