aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2017-11-21 12:00:19 +0000
committerAlex Bradbury <asb@lowrisc.org>2017-11-21 12:00:19 +0000
commit9caefe364af0e60e31d30a0fd45ad1b5616283c0 (patch)
treed3a5789514741c894c95b6ca19f4f8b5d33eac8f /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent51d82696db3c1c8fe44eafbce5cb578353f9aec3 (diff)
downloadllvm-9caefe364af0e60e31d30a0fd45ad1b5616283c0.zip
llvm-9caefe364af0e60e31d30a0fd45ad1b5616283c0.tar.gz
llvm-9caefe364af0e60e31d30a0fd45ad1b5616283c0.tar.bz2
[RISCV][NFC] Clean up RISCVDAGToDAGISel::Select
As pointed out in post-commit review of r318738, `return ReplaceNode(..)` when both ReplaceNode and the current function return void is confusing. This patch moves to using a more obvious early return, and moves to just using an if to catch the one case we currently care about. A future patch that adds further custom instruction selection can introduce a switch. llvm-svn: 318757
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions