Skip to content

Commit dd702b3

Browse files
[llvm] Remove unused local variables (NFC) (llvm#140422)
1 parent c861fe8 commit dd702b3

File tree

5 files changed

+0
-6
lines changed

5 files changed

+0
-6
lines changed

llvm/lib/Object/Object.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ LLVMObjectFileRef LLVMCreateObjectFile(LLVMMemoryBufferRef MemBuf) {
182182
std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf));
183183
Expected<std::unique_ptr<ObjectFile>> ObjOrErr(
184184
ObjectFile::createObjectFile(Buf->getMemBufferRef()));
185-
std::unique_ptr<ObjectFile> Obj;
186185
if (!ObjOrErr) {
187186
// TODO: Actually report errors helpfully.
188187
consumeError(ObjOrErr.takeError());

llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,6 @@ SDValue WebAssemblyTargetLowering::LowerShift(SDValue Op,
28712871

28722872
SDValue WebAssemblyTargetLowering::LowerFP_TO_INT_SAT(SDValue Op,
28732873
SelectionDAG &DAG) const {
2874-
SDLoc DL(Op);
28752874
EVT ResT = Op.getValueType();
28762875
EVT SatVT = cast<VTSDNode>(Op.getOperand(1))->getVT();
28772876

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53260,7 +53260,6 @@ static SDValue combineMaskedStore(SDNode *N, SelectionDAG &DAG,
5326053260
return SDValue();
5326153261

5326253262
EVT VT = Mst->getValue().getValueType();
53263-
SDLoc dl(Mst);
5326453263
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5326553264

5326653265
if (Mst->isTruncatingStore())

llvm/tools/llvm-mca/llvm-mca.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ int main(int argc, char **argv) {
454454
// Tell SrcMgr about this buffer, which is what the parser will pick up.
455455
SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc());
456456

457-
std::unique_ptr<buffer_ostream> BOS;
458-
459457
std::unique_ptr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo());
460458
assert(MCII && "Unable to create instruction info!");
461459

llvm/tools/llvm-rc/ResourceFileWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,6 @@ Expected<std::unique_ptr<MemoryBuffer>>
15731573
ResourceFileWriter::loadFile(StringRef File) const {
15741574
SmallString<128> Path;
15751575
SmallString<128> Cwd;
1576-
std::unique_ptr<MemoryBuffer> Result;
15771576

15781577
// 0. The file path is absolute or has a root directory, so we shouldn't
15791578
// try to append it on top of other base directories. (An absolute path

0 commit comments

Comments
 (0)