Change array references to match my previous change to use the public type
authorBob Wilson <bob.wilson@apple.com>
Thu, 24 Jun 2010 22:21:19 +0000 (22:21 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 24 Jun 2010 22:21:19 +0000 (22:21 +0000)
names for the array fields.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106803 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/NeonEmitter.cpp

index 5e61131cbb6784d8441d21bdea60414ca02881ae..3516d31885558f84467d64b0ff6460ce2fc7941f 100644 (file)
@@ -804,7 +804,7 @@ static std::string GenBuiltin(const std::string &name, const std::string &proto,
     // argument to the __builtin.
     if (structTypes && (proto[i] == '2' || proto[i] == '3' || proto[i] == '4')){
       for (unsigned vi = 0, ve = proto[i] - '0'; vi != ve; ++vi) {
-        s += args + ".val[" + utostr(vi) + "]";
+        s += args + ".val[" + utostr(vi) + "].val";
         if ((vi + 1) < ve)
           s += ", ";
       }