[PATCH] D91410: [llvm][clang][mlir] Add checks for the return values from Target::createXXX to prevent protential null deref
Ella Ma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 20:08:32 PST 2020
OikawaKirie updated this revision to Diff 306590.
OikawaKirie added a comment.
1. Replace fatal errors with assertions.
>> In D91410#2400018 <https://reviews.llvm.org/D91410#2400018>, @tejohnson wrote:
>
> If these are not likely due to user input issues, then perhaps they should all be assert so that they are compiled out in release compilers?
2. Fix clang-format errors in llvm/tools/llvm-objdump/MachODump.cpp
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91410/new/
https://reviews.llvm.org/D91410
Files:
clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp
clang/tools/driver/cc1as_main.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
llvm/lib/CodeGen/LLVMTargetMachine.cpp
llvm/lib/CodeGen/ParallelCG.cpp
llvm/lib/LTO/LTOBackend.cpp
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/LTO/LTOModule.cpp
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
llvm/tools/llvm-exegesis/lib/LlvmState.cpp
llvm/tools/llvm-exegesis/llvm-exegesis.cpp
llvm/tools/llvm-mc/llvm-mc.cpp
llvm/tools/llvm-mca/llvm-mca.cpp
llvm/tools/llvm-ml/llvm-ml.cpp
llvm/tools/llvm-objdump/MachODump.cpp
llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
mlir/lib/Conversion/GPUCommon/ConvertKernelFuncToBlob.cpp
mlir/lib/ExecutionEngine/ExecutionEngine.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91410.306590.patch
Type: text/x-patch
Size: 18844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201120/543b7689/attachment-0001.bin>
More information about the llvm-commits
mailing list