summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-03 15:10:47 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-03 15:10:47 +0000
commit1fae74480bfc17e5462a72fb3b870d4ecd0d1c49 (patch)
tree1490e2f6fcc84ac33451d501f63e272a77a23a40 /clang/lib/CodeGen/CodeGenModule.cpp
parentc15b38ec7d0b489f32592b2a01072eb8b31c9dcc (diff)
downloadbcm5719-llvm-1fae74480bfc17e5462a72fb3b870d4ecd0d1c49.tar.gz
bcm5719-llvm-1fae74480bfc17e5462a72fb3b870d4ecd0d1c49.zip
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
llvm-svn: 373613
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 6370561b83a..f8b4ffa024f 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1600,7 +1600,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
if (!D->hasAttr<AlignedAttr>())
if (LangOpts.FunctionAlignment)
- F->setAlignment(llvm::Align(1 << LangOpts.FunctionAlignment));
+ F->setAlignment(llvm::Align(1ull << LangOpts.FunctionAlignment));
// Some C++ ABIs require 2-byte alignment for member functions, in order to
// reserve a bit for differentiating between virtual and non-virtual member
OpenPOWER on IntegriCloud