r346212 - Cast to uint64_t instead of to unsigned.
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 5 23:12:28 PST 2018
Author: ahatanak
Date: Mon Nov 5 23:12:28 2018
New Revision: 346212
URL: http://llvm.org/viewvc/llvm-project?rev=346212&view=rev
Log:
Cast to uint64_t instead of to unsigned.
This is a follow-up to r346211.
Modified:
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=346212&r1=346211&r2=346212&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Mon Nov 5 23:12:28 2018
@@ -1171,7 +1171,7 @@ RValue CodeGenFunction::emitBuiltinOSLog
if (Item.getKind() == analyze_os_log::OSLogBufferItem::MaskKind) {
uint64_t Val = 0;
for (unsigned I = 0, E = Item.getMaskType().size(); I < E; ++I)
- Val |= ((unsigned )Item.getMaskType()[I]) << I * 8;
+ Val |= ((uint64_t)Item.getMaskType()[I]) << I * 8;
ArgVal = llvm::Constant::getIntegerValue(Int64Ty, llvm::APInt(64, Val));
} else if (const Expr *TheExpr = Item.getExpr()) {
ArgVal = EmitScalarExpr(TheExpr, /*Ignore*/ false);
More information about the cfe-commits
mailing list