[PATCH] D39917: [llvm] Remove redundant return [NFC]
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 11 19:50:32 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL317995: [llvm] Remove redundant return [NFC] (authored by mgrang).
Changed prior to commit:
https://reviews.llvm.org/D39917?vs=122496&id=122594#toc
Repository:
rL LLVM
https://reviews.llvm.org/D39917
Files:
llvm/trunk/lib/IR/Instruction.cpp
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
Index: llvm/trunk/lib/IR/Instruction.cpp
===================================================================
--- llvm/trunk/lib/IR/Instruction.cpp
+++ llvm/trunk/lib/IR/Instruction.cpp
@@ -645,7 +645,6 @@
}
if (WL.empty() || WLS.count(LLVMContext::MD_dbg))
setDebugLoc(SrcInst.getDebugLoc());
- return;
}
Instruction *Instruction::clone() const {
Index: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -5905,7 +5905,6 @@
Operands.insert(
Operands.begin() + 3,
ARMOperand::CreateReg(PairedReg, Op2.getStartLoc(), Op2.getEndLoc()));
- return;
}
/// Parse an arm instruction mnemonic followed by its operands.
Index: llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
===================================================================
--- llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
+++ llvm/trunk/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
@@ -188,7 +188,6 @@
printOperand(MI, opNum, O);
O << ", ";
printOperand(MI, opNum+1, O);
- return;
}
void MipsInstPrinter::
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39917.122594.patch
Type: text/x-patch
Size: 1233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171112/3da09e9a/attachment.bin>
More information about the llvm-commits
mailing list