commit | f77024d8706bea0efbf245b6de2b5257bfabe400 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Jun 12 15:46:56 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Jun 12 15:46:56 2010 +0000 |
tree | 8552fb10c601fa33cb3c0daa402b22cc708830ec | |
parent | ce817ea7c3258cc29a7b294f5326a49d75869b4d [diff] |
declare a class with 'class' instead of struct to avoid tag mismatch warnings, and don't shift by a bool. Patch by Rizky Herucakra! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105886 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp index 3c7a9fe..6c5f862 100644 --- a/utils/TableGen/NeonEmitter.cpp +++ b/utils/TableGen/NeonEmitter.cpp
@@ -669,7 +669,7 @@ case 'h': nElts = 4; break; case 'f': nElts = 2; break; } - nElts <<= quad; + if (quad) nElts <<= 1; char arg = 'a'; std::string s;