From e106bc17a369d071b9ca7120d9b3fc2df1025f7b Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 2 Dec 2010 00:24:56 +0000 Subject: [PATCH] Cast scalar results of Neon macros to the correct type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120631 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/NeonEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp index 87157a396d1..9feec48e6f0 100644 --- a/utils/TableGen/NeonEmitter.cpp +++ b/utils/TableGen/NeonEmitter.cpp @@ -727,7 +727,7 @@ static std::string GenBuiltin(const std::string &name, const std::string &proto, if (define) { if (sret) s += "({ " + ts + " r; "; - else if (proto[0] != 's') + else s += "(" + ts + ")"; } else if (sret) { s += ts + " r; "; -- 2.34.1