aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2021-12-15 13:06:28 +0100
committerNikita Popov <npopov@redhat.com>2021-12-15 14:03:33 +0100
commitd930c3155c1ba5114ad12fc15635cb0a2480ac9f (patch)
treef9b20156d5e2f61bba63c088e3d89b1805ef56d9 /clang/lib/CodeGen/CodeGenFunction.h
parent5653d127d7c454be2df1024b26f06612b79f4435 (diff)
downloadllvm-d930c3155c1ba5114ad12fc15635cb0a2480ac9f.zip
llvm-d930c3155c1ba5114ad12fc15635cb0a2480ac9f.tar.gz
llvm-d930c3155c1ba5114ad12fc15635cb0a2480ac9f.tar.bz2
[CodeGen] Pass element type to EmitCheckedInBoundsGEP()
Same as for other GEP creation methods.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 2fabeb2..bb60e22 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -4563,7 +4563,7 @@ public:
/// \p SignedIndices indicates whether any of the GEP indices are signed.
/// \p IsSubtraction indicates whether the expression used to form the GEP
/// is a subtraction.
- llvm::Value *EmitCheckedInBoundsGEP(llvm::Value *Ptr,
+ llvm::Value *EmitCheckedInBoundsGEP(llvm::Type *ElemTy, llvm::Value *Ptr,
ArrayRef<llvm::Value *> IdxList,
bool SignedIndices,
bool IsSubtraction,