diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-03 06:58:52 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-03 06:58:52 +0000 |
| commit | 95563a5ba8b44747d272f66bad585cd4caf5fbb7 (patch) | |
| tree | 31c8b8224b5de4ff8119b3658ef4a16597fe6ecc /lib/CodeGen/CodeGenFunction.h | |
| parent | a52f6237e83863fd602bd74ac627d63425bdea08 (diff) | |
| download | clang-95563a5ba8b44747d272f66bad585cd4caf5fbb7.tar.gz clang-95563a5ba8b44747d272f66bad585cd4caf5fbb7.tar.bz2 clang-95563a5ba8b44747d272f66bad585cd4caf5fbb7.tar.xz | |
When emitting a multidimensional array new, emit the initializers for the
trailing elements as a single loop, rather than sometimes emitting a nest of
several loops. This fixes a bug where CodeGen would sometimes try to emit an
expression with the wrong type for the element being initialized. Plus various
other minor cleanups to the IR produced for array new initialization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 750bec8b07..d1e63a710b 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1647,7 +1647,8 @@ public: llvm::Value *This); void EmitNewArrayInitializer(const CXXNewExpr *E, QualType elementType, - llvm::Value *NewPtr, llvm::Value *NumElements); + llvm::Value *NewPtr, llvm::Value *NumElements, + llvm::Value *AllocSizeWithoutCookie); void EmitCXXTemporary(const CXXTemporary *Temporary, QualType TempType, llvm::Value *Ptr); |
