summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-02-09 15:55:30 +0100
committergnzlbg <gonzalobg88@gmail.com>2019-02-23 15:48:40 +0100
commitc4b46ace556f3e4776d06ea7672daba6b243a80f (patch)
tree34033c65f3206aeb933e7784cbb19cb0d22405fa /src/rustllvm/RustWrapper.cpp
parentbcfb5e8ac30c46ba512526d66f803756c124c7bb (diff)
downloadrust-c4b46ace556f3e4776d06ea7672daba6b243a80f.tar.gz
rust-c4b46ace556f3e4776d06ea7672daba6b243a80f.zip
Implement ffi_returns_twice attribute
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");
 }