OSDN Git Service

Fix typo in emitted attribute name
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 3 Dec 2017 00:03:01 +0000 (00:03 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 3 Dec 2017 00:03:01 +0000 (00:03 +0000)
Fixes build when using this attribute combination
on an intrinsic.

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

utils/TableGen/IntrinsicEmitter.cpp

index d9e0d25..b4e61ec 100644 (file)
@@ -701,7 +701,7 @@ void IntrinsicEmitter::EmitAttributes(const CodeGenIntrinsicTable &Ints,
         if (addComma)
           OS << ",";
         OS << "Attribute::WriteOnly,";
-        OS << "Attribute::InaccessibleMemOrArgOnly";
+        OS << "Attribute::InaccessibleMemOrArgMemOnly";
         break;
       case CodeGenIntrinsic::ReadWriteArgMem:
         if (addComma)