diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2019-10-15 11:24:36 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2019-10-15 11:24:36 +0000 |
commit | 0e62011df891d0e7ad904524edf705d07d12d5d4 (patch) | |
tree | 382bb15747d33686e71e748a0a5508997f006803 /polly/lib/CodeGen | |
parent | 284827f32bd8d06ca1ab8a949bf96088612b1504 (diff) | |
download | bcm5719-llvm-0e62011df891d0e7ad904524edf705d07d12d5d4.tar.gz bcm5719-llvm-0e62011df891d0e7ad904524edf705d07d12d5d4.zip |
[Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned)
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: arsenm, mehdi_amini, jvesely, nhaehnle, hiraditya, steven_wu, dexonsmith, dang, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68944
llvm-svn: 374880
Diffstat (limited to 'polly/lib/CodeGen')
-rw-r--r-- | polly/lib/CodeGen/LoopGeneratorsKMP.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/LoopGeneratorsKMP.cpp b/polly/lib/CodeGen/LoopGeneratorsKMP.cpp index d2ebdbce619..895967dd5bf 100644 --- a/polly/lib/CodeGen/LoopGeneratorsKMP.cpp +++ b/polly/lib/CodeGen/LoopGeneratorsKMP.cpp @@ -468,11 +468,11 @@ GlobalVariable *ParallelLoopGeneratorKMP::createSourceLocation() { // Global Variable Definitions GlobalVariable *StrVar = new GlobalVariable( *M, ArrayType, true, GlobalValue::PrivateLinkage, 0, ".str.ident"); - StrVar->setAlignment(1); + StrVar->setAlignment(llvm::Align::None()); SourceLocDummy = new GlobalVariable( *M, IdentTy, true, GlobalValue::PrivateLinkage, nullptr, LocName); - SourceLocDummy->setAlignment(8); + SourceLocDummy->setAlignment(llvm::Align(8)); // Constant Definitions Constant *InitStr = ConstantDataArray::getString( |