summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjCXX/arc-exceptions.mm
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-11-18 22:18:45 +0000
committerPete Cooper <peter_cooper@apple.com>2015-11-18 22:18:45 +0000
commit7bfd5cb7be04b6963aa7a587bb82b723f686c6b4 (patch)
treee507353f19f6e410b37fe94325a34557b6e3cb8a /clang/test/CodeGenObjCXX/arc-exceptions.mm
parent72bc23ef02bad3873d3572b2be529404a461d449 (diff)
downloadbcm5719-llvm-7bfd5cb7be04b6963aa7a587bb82b723f686c6b4.tar.gz
bcm5719-llvm-7bfd5cb7be04b6963aa7a587bb82b723f686c6b4.zip
Change memcpy/memset/memmove to have dest and source alignments.
This is a follow on from a similar LLVM commit: r253511. Note, this was reviewed (and more details are in) http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151109/312083.html These intrinsics currently have an explicit alignment argument which is required to be a constant integer. It represents the alignment of the source and dest, and so must be the minimum of those. This change allows source and dest to each have their own alignments by using the alignment attribute on their arguments. The alignment argument itself is removed. The only code change to clang is hidden in CGBuilder.h which now passes both dest and source alignment to IRBuilder, instead of taking the minimum of dest and source alignments. Reviewed by Hal Finkel. llvm-svn: 253512
Diffstat (limited to 'clang/test/CodeGenObjCXX/arc-exceptions.mm')
-rw-r--r--clang/test/CodeGenObjCXX/arc-exceptions.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjCXX/arc-exceptions.mm b/clang/test/CodeGenObjCXX/arc-exceptions.mm
index 0ae30694318..3d504613507 100644
--- a/clang/test/CodeGenObjCXX/arc-exceptions.mm
+++ b/clang/test/CodeGenObjCXX/arc-exceptions.mm
@@ -101,7 +101,7 @@ namespace test4 {
// Construct array.
// CHECK-NEXT: [[ARRAY:%.*]] = getelementptr inbounds [[A]], [[A]]* [[THIS]], i32 0, i32 1
// CHECK-NEXT: [[T0:%.*]] = bitcast [2 x [3 x i8*]]* [[ARRAY]] to i8*
- // CHECK-NEXT: call void @llvm.memset.p0i8.i64(i8* [[T0]], i8 0, i64 48, i32 8, i1 false)
+ // CHECK-NEXT: call void @llvm.memset.p0i8.i64(i8* align 8 [[T0]], i8 0, i64 48, i1 false)
// throw 0;
// CHECK: invoke void @__cxa_throw(
// Landing pad from throw site:
OpenPOWER on IntegriCloud