about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-02-24 14:15:55 +0000
committerbors <bors@rust-lang.org>2019-02-24 14:15:55 +0000
commit097c04cf433048585dd9e3f63b30e03cc3509e4b (patch)
tree2eede5dc9fa313a4df57e6215f019f5e08028568 /src/rustllvm/RustWrapper.cpp
parente17c48e2f21eefd59748e364234efc7037a3ec96 (diff)
parent94aa74004efddf0cfb6fe4bb65eee9effbe40ae8 (diff)
downloadrust-097c04cf433048585dd9e3f63b30e03cc3509e4b.tar.gz
rust-097c04cf433048585dd9e3f63b30e03cc3509e4b.zip
Auto merge of #58315 - gnzlbg:returns_twice, r=alexcrichton
Implement unstable ffi_return_twice attribute

This PR implements [RFC2633](https://github.com/rust-lang/rfcs/pull/2633)

r? @eddyb
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index b33165b8463..a00417a3629 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -190,6 +190,8 @@ static Attribute::AttrKind fromRust(LLVMRustAttribute Kind) {
     return Attribute::NonLazyBind;
   case OptimizeNone:
     return Attribute::OptimizeNone;
+  case ReturnsTwice:
+    return Attribute::ReturnsTwice;
   }
   report_fatal_error("bad AttributeKind");
 }