1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Bitcode
Florian Hahn 7d4455d586 [BitcodeReader] Check if we can create a null constant for type.
We cannot create null constants for certain types, e.g. VoidTy,
FunctionTy or LabelTy. getNullValue asserts if we pass in an
unsupported type. We should also check for opaque types, but I'm not
sure how.

This fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14795.

Reviewers: t.p.northover, jfb, vsk

Reviewed By: vsk

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65897

llvm-svn: 369557
2019-08-21 18:20:11 +00:00
..
Inputs Recommit "[BitcodeReader] Validate OpNum, before accessing Record array." 2019-07-14 14:06:25 +00:00
2006-12-11-Cast-ConstExpr.ll
2009-06-11-FirstClassAggregateConstant.ll
aggregateInstructions.3.2.ll
aggregateInstructions.3.2.ll.bc
anon-functions.ll
apple-clang-700-compat.test
arm32_neon_vcnt_upgrade.ll
atomic-no-syncscope.ll
atomic-no-syncscope.ll.bc
atomic.ll
attributes-3.3.ll IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
attributes-3.3.ll.bc
attributes.ll IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
auto_upgrade_intrinsics.bc
avr-calling-conventions.ll IR: print value numbers for unnamed function arguments 2019-08-03 14:28:34 +00:00
avr-calling-conventions.ll.bc
bcanalyzer-atomics.ll
binaryFloatInstructions.3.2.ll
binaryFloatInstructions.3.2.ll.bc
binaryIntInstructions.3.2.ll
binaryIntInstructions.3.2.ll.bc
bitcode-wrapper-header-armv7m.ll
bitcode-wrapper-header-x86_64.ll
bitwiseInstructions.3.2.ll
bitwiseInstructions.3.2.ll.bc
blockaddress.ll
byval-upgrade.test
callbr.ll
callbr.ll.bc
calling-conventions.3.2.ll
calling-conventions.3.2.ll.bc
case-ranges-3.3.ll
case-ranges-3.3.ll.bc
cmpxchg-upgrade.ll
cmpxchg-upgrade.ll.bc
cmpxchg.3.6.ll
cmpxchg.3.6.ll.bc
compatibility-3.6.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
compatibility-3.6.ll.bc
compatibility-3.7.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
compatibility-3.7.ll.bc
compatibility-3.8.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
compatibility-3.8.ll.bc
compatibility-3.9.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
compatibility-3.9.ll.bc
compatibility-4.0.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
compatibility-4.0.ll.bc
compatibility-5.0.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
compatibility-5.0.ll.bc
compatibility-6.0.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
compatibility-6.0.ll.bc
compatibility.ll [FunctionAttrs] Annotate "willreturn" for intrinsics 2019-07-28 06:09:56 +00:00
constantsTest.3.2.ll
constantsTest.3.2.ll.bc
conversionInstructions.3.2.ll
conversionInstructions.3.2.ll.bc
debug-loc-again.ll
dicompileunit-gnu-pubnames.ll
DICompileUnit-no-DWOId.ll
DICompileUnit-no-DWOId.ll.bc
DIExpression-4.0.ll
DIExpression-4.0.ll.bc
DIExpression-aggresult.ll
DIExpression-aggresult.ll.bc
DIExpression-deref.ll
DIExpression-deref.ll.bc
DIExpression-minus-upgrade.ll
DIExpression-minus-upgrade.ll.bc
diglobalvariable-3.8.ll
diglobalvariable-3.8.ll.bc
DIGlobalVariableExpression2.ll
DIGlobalVariableExpression2.ll.bc
DIGlobalVariableExpression.ll
DIGlobalVariableExpression.ll.bc
dilocalvariable-3.9.ll
dilocalvariable-3.9.ll.bc
DILocalVariable-explicit-tags.ll
DILocalVariable-explicit-tags.ll.bc
DILocation-implicit-code.ll
DILocation-implicit-code.ll.bc
DINamespace.ll
DINamespace.ll.bc
DISubprogram-distinct-definitions.ll
DISubprogram-distinct-definitions.ll.bc
DISubprogram-v4.ll
DISubprogram-v4.ll.bc
DISubprogram-v5.ll
DISubprogram-v5.ll.bc
disubrange-v0.ll
disubrange-v0.ll.bc
disubrange.ll
dityperefs-3.8.ll
dityperefs-3.8.ll.bc
drop-debug-info.3.5.ll
drop-debug-info.3.5.ll.bc
dso_location.ll
extractelement.ll
fcmp-fast.ll
flags.ll
function-address-space-fwd-decl.ll
function-default-address-spaces.ll
function-encoding-rel-operands.ll
function-local-metadata.3.5.ll
function-local-metadata.3.5.ll.bc
function-nonzero-address-spaces-types.ll
function-nonzero-address-spaces.ll
global-variables.3.2.ll
global-variables.3.2.ll.bc
globalvariable-attributes.ll
highLevelStructure.3.2.ll
highLevelStructure.3.2.ll.bc
identification.ll
inalloca.ll
infer_dso_local.ll
invalid-functionptr-align.ll [DataLayout] Check StackNatural and FunctionPtr alignments. 2019-08-07 17:20:55 +00:00
invalid-functionptr-align.ll.bc [DataLayout] Check StackNatural and FunctionPtr alignments. 2019-08-07 17:20:55 +00:00
invalid-type-for-null-constant.ll [BitcodeReader] Check if we can create a null constant for type. 2019-08-21 18:20:11 +00:00
invalid-type-for-null-constant.ll.bc [BitcodeReader] Check if we can create a null constant for type. 2019-08-21 18:20:11 +00:00
invalid-weak-external.ll
invalid.ll [NFC] Adjust "invalid.ll.bc" tests to check for AttrKind #255 not #63 2019-07-11 01:14:30 +00:00
invalid.ll.bc [NFC] Adjust "invalid.ll.bc" tests to check for AttrKind #255 not #63 2019-07-11 01:14:30 +00:00
invalid.test Recommit "[BitcodeReader] Validate OpNum, before accessing Record array." 2019-07-14 14:06:25 +00:00
linkage-types-3.2.ll
linkage-types-3.2.ll.bc
local-linkage-default-visibility.3.4.ll
local-linkage-default-visibility.3.4.ll.bc
mdnodes-distinct-in-post-order.ll
mdnodes-distinct-nodes-break-cycles.ll
mdnodes-distinct-nodes-first.ll
mdnodes-in-post-order.ll
mdstring-high-bits.ll
memInstructions.3.2.ll
memInstructions.3.2.ll.bc
metadata-2.ll
metadata-function-blocks.ll
metadata-only-empty-string.ll
metadata-source.ll
metadata-source.ll.bc
metadata-strings.ll
metadata.3.5.ll
metadata.3.5.ll.bc
metadata.ll
miscInstructions.3.2.ll
miscInstructions.3.2.ll.bc
module_hash.ll
module-hash-strtab.ll
multi-module.ll
null-type.ll
null-type.ll.bc
objectsize-upgrade-7.0.ll
objectsize-upgrade-7.0.ll.bc
old-aliases.ll
old-aliases.ll.bc
operand-bundles-bc-analyzer.ll
operand-bundles.ll
padding.test
pr18704.ll [BitcodeReader] Use tighter upper bound to validate forward references. 2019-07-14 12:35:50 +00:00
pr18704.ll.bc
PR23310.test
ptest-new.ll
ptest-old.ll
select.ll
shuffle.ll
source-filename.test
ssse3_palignr.ll
standardCIntrinsic.3.2.ll
standardCIntrinsic.3.2.ll.bc
stream-types.c Reland: [Remarks] Add an LLVM-bitstream-based remark serializer 2019-07-31 00:13:51 +00:00
stream-types.c.ast
stream-types.c.ast.incomplete
stream-types.c.dia
stream-types.c.dia.incomplete
stream-types.c.opt.bitstream Reland: [Remarks] Add an LLVM-bitstream-based remark serializer 2019-07-31 00:13:51 +00:00
summary_version.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
tailcall.ll
terminatorInstructions.3.2.ll
terminatorInstructions.3.2.ll.bc
thinlto-alias2.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-alias3.ll IR: Teach GlobalIndirectSymbol::getBaseObject() to handle more kinds of expressions. 2019-07-24 22:23:05 +00:00
thinlto-alias.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-asm-noimport.ll
thinlto-deadstrip-flag.ll
thinlto-empty-summary-section.ll
thinlto-function-summary-callgraph-cast.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-function-summary-callgraph-pgo.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-function-summary-callgraph-profile-summary.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-function-summary-callgraph-relbf.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-function-summary-callgraph-sample-profile-summary.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-function-summary-callgraph.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-function-summary-functionattrs.ll
thinlto-function-summary-originalnames.ll [Bitcode] Update CHECK-DAG usage in tests 2019-07-03 17:31:43 +00:00
thinlto-function-summary-refgraph.ll [ThinLTO] Attempt to recommit r365188 after alignment fix 2019-07-05 15:25:05 +00:00
thinlto-function-summary.ll
thinlto-summary-globalvar.ll
thinlto-summary-linkage-types.ll
thinlto-summary-local-5.0.ll [Bitcode] Update CHECK-DAG usage in tests 2019-07-03 17:31:43 +00:00
thinlto-summary-local-5.0.ll.bc
thinlto-summary-section.ll
thinlto-synthetic-count-flag.ll
thinlto-type-tests.ll
thinlto-type-vcalls.ll
thinlto-unused-type-tests.ll
upgrade-arc-runtime-calls-new.bc [AutoUpgrader] Make ArcRuntime Autoupgrader more conservative 2019-08-13 17:52:21 +00:00
upgrade-arc-runtime-calls.bc Do not call replaceAllUsesWith to upgrade calls to ARC runtime functions 2019-08-13 01:23:06 +00:00
upgrade-arc-runtime-calls.ll [AutoUpgrader] Make ArcRuntime Autoupgrader more conservative 2019-08-13 17:52:21 +00:00
upgrade-clang-arc-use.ll [ObjC][ARC] Upgrade calls to ARC runtime functions to intrinsic calls if 2019-08-08 16:59:31 +00:00
upgrade-clang-arc-use.ll.bc
upgrade-dbg-checksum.ll
upgrade-dbg-checksum.ll.bc
upgrade-dbg-value.ll
upgrade-dbg-value.ll.bc
upgrade-debug-info-for-profiling.ll
upgrade-debug-info-for-profiling.ll.bc
upgrade-global-ctors.ll
upgrade-global-ctors.ll.bc
upgrade-global-dtors.ll
upgrade-global-dtors.ll.bc
upgrade-importedentity.ll
upgrade-importedentity.ll.bc
upgrade-invariant-group-barrier.ll
upgrade-linker-options.ll
upgrade-loop-metadata.ll
upgrade-loop-metadata.ll.bc
upgrade-memory-intrinsics.ll [Intrinsics] Add a 'NoAlias' intrinsic property; annotate llvm.memcpy 2019-08-14 08:33:07 +00:00
upgrade-module-flag.ll
upgrade-mrr-runtime-calls.bc Do not call replaceAllUsesWith to upgrade calls to ARC runtime functions 2019-08-13 01:23:06 +00:00
upgrade-objcretainrelease-asm.ll
upgrade-objcretainrelease-asm.ll.bc
upgrade-objcretainrelease.ll
upgrade-objcretainrelease.ll.bc
upgrade-pointer-address-space.ll [Bitcode] Update CHECK-DAG usage in tests 2019-07-03 17:31:43 +00:00
upgrade-pointer-address-space.ll.bc
upgrade-section-name.ll
upgrade-subprogram-this.ll
upgrade-subprogram-this.ll.bc
upgrade-subprogram.ll
upgrade-subprogram.ll.bc
upgrade-tbaa.ll
upgrade-vecreduce-intrinsics.ll
upgrade-vecreduce-intrinsics.ll.bc
use-list-order2.ll
use-list-order.ll
value-with-long-name.ll
variableArgumentIntrinsic.3.2.ll
variableArgumentIntrinsic.3.2.ll.bc
vector-pcs.ll
vectorInstructions.3.2.ll
vectorInstructions.3.2.ll.bc
visibility-styles.3.2.ll
visibility-styles.3.2.ll.bc
vst-forward-declaration.ll
weak-cmpxchg-upgrade.ll
weak-cmpxchg-upgrade.ll.bc
weak-macho-3.5.ll
weak-macho-3.5.ll.bc