Adding some explicit casts to appease build bots; NFC
authorAaron Ballman <aaron@aaronballman.com>
Mon, 16 Nov 2020 14:13:24 +0000 (09:13 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 16 Nov 2020 14:13:24 +0000 (09:13 -0500)
clang/lib/Sema/DeclSpec.cpp

index b028154..7cef655 100644 (file)
@@ -1094,8 +1094,8 @@ bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind,
 }
 
 void DeclSpec::SaveWrittenBuiltinSpecs() {
-  writtenBS.Sign = getTypeSpecSign();
-  writtenBS.Width = getTypeSpecWidth();
+  writtenBS.Sign = static_cast<int>(getTypeSpecSign());
+  writtenBS.Width = static_cast<int>(getTypeSpecWidth());
   writtenBS.Type = getTypeSpecType();
   // Search the list of attributes for the presence of a mode attribute.
   writtenBS.ModeAttr = getAttributes().hasAttribute(ParsedAttr::AT_Mode);