From: Bob Wilson Date: Thu, 2 Dec 2010 00:24:56 +0000 (+0000) Subject: Cast scalar results of Neon macros to the correct type. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e106bc17a369d071b9ca7120d9b3fc2df1025f7b;p=oota-llvm.git 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 --- 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; ";