diff options
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index c8d6bdd..7a3c9a9 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -526,13 +526,8 @@ std::string Attribute::getAsString(bool InAttrGrp) const { if (hasAttribute(Attribute::UWTable)) { UWTableKind Kind = getUWTableKind(); - if (Kind != UWTableKind::None) { - return Kind == UWTableKind::Default - ? "uwtable" - : ("uwtable(" + - Twine(Kind == UWTableKind::Sync ? "sync" : "async") + ")") - .str(); - } + assert(Kind != UWTableKind::None && "uwtable attribute should not be none"); + return Kind == UWTableKind::Default ? "uwtable" : "uwtable(sync)"; } if (hasAttribute(Attribute::AllocKind)) { |