about summary refs log tree commit diff
path: root/src/test/codegen/refs.rs
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-10-06 10:25:35 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2017-11-19 02:43:32 +0200
commitcdeb4b0d258c19f57ee6fb089126656e18324367 (patch)
tree39b1e45990bf63df626bebe3c020360f2df5356c /src/test/codegen/refs.rs
parentf1b7cd99254dd11ff7370fe423cca6fd8046f7d2 (diff)
downloadrust-cdeb4b0d258c19f57ee6fb089126656e18324367.tar.gz
rust-cdeb4b0d258c19f57ee6fb089126656e18324367.zip
rustc: encode scalar pairs in layout ABI.
Diffstat (limited to 'src/test/codegen/refs.rs')
-rw-r--r--src/test/codegen/refs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/refs.rs b/src/test/codegen/refs.rs
index 2ab64fffa3b..0c084131ea3 100644
--- a/src/test/codegen/refs.rs
+++ b/src/test/codegen/refs.rs
@@ -24,9 +24,9 @@ pub fn helper(_: usize) {
 pub fn ref_dst(s: &[u8]) {
     // We used to generate an extra alloca and memcpy to ref the dst, so check that we copy
     // directly to the alloca for "x"
-// CHECK: [[X0:%[0-9]+]] = bitcast { [0 x i8], [0 x i8]*, [0 x i8], [[USIZE]], [0 x i8] }* %x to [0 x i8]**
+// CHECK: [[X0:%[0-9]+]] = bitcast { [0 x i8]*, [[USIZE]] }* %x to [0 x i8]**
 // CHECK: store [0 x i8]* %s.0, [0 x i8]** [[X0]]
-// CHECK: [[X1:%[0-9]+]] = getelementptr {{.*}} { [0 x i8], [0 x i8]*, [0 x i8], [[USIZE]], [0 x i8] }* %x, i32 0, i32 3
+// CHECK: [[X1:%[0-9]+]] = getelementptr {{.*}} { [0 x i8]*, [[USIZE]] }* %x, i32 0, i32 1
 // CHECK: store [[USIZE]] %s.1, [[USIZE]]* [[X1]]
 
     let x = &*s;