aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-06-28 20:41:24 -0700
committerGitHub <noreply@github.com>2025-06-28 20:41:24 -0700
commit8a4b6cd8d80dbff55601e3291a71e0053793c108 (patch)
tree0820f2f31e994217e192d56bdb4fb4ead81a8419
parent0d0daef6ee955be09e4355830cb4d638d4e184d5 (diff)
downloadllvm-8a4b6cd8d80dbff55601e3291a71e0053793c108.zip
llvm-8a4b6cd8d80dbff55601e3291a71e0053793c108.tar.gz
llvm-8a4b6cd8d80dbff55601e3291a71e0053793c108.tar.bz2
[IR] Remove an unnecessary cast (NFC) (#146250)
Agg is already of Type *.
-rw-r--r--llvm/lib/IR/Instructions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 8d9b545..3cfee89 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -2582,7 +2582,7 @@ Type *ExtractValueInst::getIndexedType(Type *Agg,
return nullptr;
}
}
- return const_cast<Type*>(Agg);
+ return Agg;
}
//===----------------------------------------------------------------------===//