Update attribute reading for the changed source location code.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 5 Oct 2010 15:59:36 +0000 (15:59 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 5 Oct 2010 15:59:36 +0000 (15:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115624 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangAttrEmitter.cpp

index 2faa49ca45ad1a53fcc3b2e986464fc1090d2785..3a6e7a8addc4f35b605fb28aaa23008d6d09ad82 100644 (file)
@@ -269,10 +269,10 @@ namespace {
       OS << "    bool is" << getLowerName() << "Expr = Record[Idx++];\n";
       OS << "    void *" << getLowerName() << "Ptr;\n";
       OS << "    if (is" << getLowerName() << "Expr)\n";
-      OS << "      " << getLowerName() << "Ptr = ReadExpr(DeclsCursor);\n";
+      OS << "      " << getLowerName() << "Ptr = ReadExpr(F);\n";
       OS << "    else\n";
       OS << "      " << getLowerName()
-         << "Ptr = GetTypeSourceInfo(DeclsCursor, Record, Idx);\n";
+         << "Ptr = GetTypeSourceInfo(F, Record, Idx);\n";
     }
     void writePCHWrite(raw_ostream &OS) const {
       OS << "    Record.push_back(SA->is" << getUpperName() << "Expr());\n";