[clang] f7c881b - Adding some explicit casts to appease build bots; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 16 06:13:52 PST 2020
Author: Aaron Ballman
Date: 2020-11-16T09:13:24-05:00
New Revision: f7c881b89eabec1af65073ede344da818292d62b
URL: https://github.com/llvm/llvm-project/commit/f7c881b89eabec1af65073ede344da818292d62b
DIFF: https://github.com/llvm/llvm-project/commit/f7c881b89eabec1af65073ede344da818292d62b.diff
LOG: Adding some explicit casts to appease build bots; NFC
Added:
Modified:
clang/lib/Sema/DeclSpec.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index b0281540d066..7cef6553237e 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -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);
More information about the cfe-commits
mailing list