1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test
Jorge Gorbe Moya ac434d7750 Fix crash after looking up dwo_id=0 in CU index.
In the current state, if getFromHash(0) is called and there's no CU with
dwo_id=0, the lookup will stop at an empty slot, then the check
`Rows[H].getSignature() != S` won't cause the lookup to fail and return
a nullptr (as it should), because the empty slot has a 0 in the
signature field, and a pointer to the empty slot will be incorrectly
returned.

This patch fixes this by using the index field in the hash entry to
check for empty slots: signature = 0 can match a valid hash but
according to the spec the index for an occupied slot will always be
non-zero.

Differential Revision: https://reviews.llvm.org/D91670
2020-11-19 11:15:01 -08:00
..
Analysis [FileCheck] Disallow unused prefixes in llvm/test/Analysis 2020-11-19 07:56:35 -08:00
Assembler
Bindings
Bitcode Revert "[BitCode] decode nossp fn attr" 2020-11-17 17:27:14 -08:00
BugPoint
CodeGen [RISCV] Add test cases for missed grevi/greviw opportunities. NFC 2020-11-19 18:43:39 +00:00
DebugInfo
Demangle
Examples
ExecutionEngine
Feature [NPM] Remove -enable-npm-optnone flag 2020-11-18 15:49:16 -08:00
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MachineVerifier
MC [RISCV] Use register class VR for V instruction operands directly. 2020-11-19 05:59:46 +08:00
Object Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
ObjectYAML Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
Other [test] Make scc-pass-printer.ll work with NPM 2020-11-17 23:53:47 -08:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen
ThinLTO/X86
tools Fix crash after looking up dwo_id=0 in CU index. 2020-11-19 11:15:01 -08:00
Transforms [OpenMP] Add Location Fields to Libomptarget Runtime for Debugging 2020-11-19 12:01:53 -05:00
Unit
Verifier Revert "[IR] add fn attr for no_stack_protector; prevent inlining on mismatch" 2020-11-17 17:27:14 -08:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh