Cast scalar results of Neon macros to the correct type.
authorBob Wilson <bob.wilson@apple.com>
Thu, 2 Dec 2010 00:24:56 +0000 (00:24 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 2 Dec 2010 00:24:56 +0000 (00:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120631 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/NeonEmitter.cpp

index 87157a396d1ec1fe9cd01580a6f3eb1671578e4f..9feec48e6f0455d83576f18ee971a4f6b246a80f 100644 (file)
@@ -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; ";