aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-10-07 11:32:58 +0200
committerNikita Popov <npopov@redhat.com>2022-10-07 11:35:55 +0200
commitccf53cae32bc067f2c68c518e8c934bd9085f9be (patch)
tree8d8484e403771a789c228777b5ed30fcba0d04df /llvm/lib/Analysis/ValueTracking.cpp
parent68ab7accc72bffe4d27a1b2ee50105c7ffda54cf (diff)
downloadllvm-ccf53cae32bc067f2c68c518e8c934bd9085f9be.zip
llvm-ccf53cae32bc067f2c68c518e8c934bd9085f9be.tar.gz
llvm-ccf53cae32bc067f2c68c518e8c934bd9085f9be.tar.bz2
[ValueTracking] Remove unused Offset argument in getConstantStringInfo() (NFC)
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 95f6e5d..e99f62c 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4321,9 +4321,9 @@ bool llvm::getConstantDataArrayInfo(const Value *V,
/// return true. When TrimAtNul is set, Str will contain only the bytes up
/// to but not including the first nul. Return false on failure.
bool llvm::getConstantStringInfo(const Value *V, StringRef &Str,
- uint64_t Offset, bool TrimAtNul) {
+ bool TrimAtNul) {
ConstantDataArraySlice Slice;
- if (!getConstantDataArrayInfo(V, Slice, 8, Offset))
+ if (!getConstantDataArrayInfo(V, Slice, 8))
return false;
if (Slice.Array == nullptr) {