about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2016-12-21 21:42:10 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2016-12-21 21:44:40 +0300
commitc461cdfdf686caec2b93fe9e41efaa79b7a5c292 (patch)
treefe11548bfadb41480ec69130bdd86393e515905a /src/rustllvm/RustWrapper.cpp
parent1b38776c1f68c6fd47c1b2f7b7974efc7dd64901 (diff)
downloadrust-c461cdfdf686caec2b93fe9e41efaa79b7a5c292.tar.gz
rust-c461cdfdf686caec2b93fe9e41efaa79b7a5c292.zip
Fixed fastcall not applying inreg attributes to arguments like the C/C++ fastcall.
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 f5fa66f1b0e..5d5845213e2 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -150,6 +150,8 @@ from_rust(LLVMRustAttribute kind) {
       return Attribute::UWTable;
     case ZExt:
       return Attribute::ZExt;
+    case InReg:
+      return Attribute::InReg;
     default:
       llvm_unreachable("bad AttributeKind");
   }