summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-02 00:24:56 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-02 00:24:56 +0000
commite106bc17a369d071b9ca7120d9b3fc2df1025f7b (patch)
treec92ba9c78088fbcedd472881cbeac88f25e8578b /utils
parent0be938e38916cecd4d3406c8531a341b2e1c9ec5 (diff)
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/NeonEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
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; ";