[all-commits] [llvm/llvm-project] ada6bc: [X86] X86tcret_1reg - use cast<> instead of dyn_ca...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Feb 17 03:54:42 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ada6bcc13f0519320c9e5eb1006d5e71beea1cec
https://github.com/llvm/llvm-project/commit/ada6bcc13f0519320c9e5eb1006d5e71beea1cec
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-02-17 (Thu, 17 Feb 2022)
Changed paths:
M llvm/lib/Target/X86/X86InstrCompiler.td
Log Message:
-----------
[X86] X86tcret_1reg - use cast<> instead of dyn_cast<> to avoid dereference of nullptr
The pointer is always dereferenced, so assert the cast is correct instead of returning nullptr
More information about the All-commits
mailing list