[clang] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 7 12:22:49 PST 2023


================
@@ -3022,18 +3022,24 @@ class CodeGenFunction : public CodeGenTypeCache {
   void EmitBoundsCheck(const Expr *E, const Expr *Base, llvm::Value *Index,
                        QualType IndexType, bool Accessed);
 
+  void EmitBoundsCheck(const Expr *E, llvm::Value *Bound, llvm::Value *Index,
----------------
bwendling wrote:

Okay. I renamed it to `EmitBoundsCheckImpl`. That tends to imply that the non-Impl version is the one most people will call. :-)

https://github.com/llvm/llvm-project/pull/73730


More information about the cfe-commits mailing list