[PATCH] D110179: [NFC][IR] Remove unused assignment to Offset
Alf via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 21 08:15:04 PDT 2021
gAlfonso-bit created this revision.
Herald added subscribers: dexonsmith, hiraditya.
gAlfonso-bit requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This value is overwritten anyway, so let's remove it
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110179
Files:
llvm/lib/IR/Operator.cpp
Index: llvm/lib/IR/Operator.cpp
===================================================================
--- llvm/lib/IR/Operator.cpp
+++ llvm/lib/IR/Operator.cpp
@@ -38,7 +38,7 @@
Align Result = Align(llvm::Value::MaximumAlignment);
for (gep_type_iterator GTI = gep_type_begin(this), GTE = gep_type_end(this);
GTI != GTE; ++GTI) {
- int64_t Offset = 1;
+ int64_t Offset;
ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
if (StructType *STy = GTI.getStructTypeOrNull()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110179.373941.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210921/21cb20d4/attachment.bin>
More information about the llvm-commits
mailing list