summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc/Speculation.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-10-15 11:24:36 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-10-15 11:24:36 +0000
commit0e62011df891d0e7ad904524edf705d07d12d5d4 (patch)
tree382bb15747d33686e71e748a0a5508997f006803 /llvm/lib/ExecutionEngine/Orc/Speculation.cpp
parent284827f32bd8d06ca1ab8a949bf96088612b1504 (diff)
downloadbcm5719-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 'llvm/lib/ExecutionEngine/Orc/Speculation.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/Speculation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Speculation.cpp b/llvm/lib/ExecutionEngine/Orc/Speculation.cpp
index 4f2ea92706c..f29201c147a 100644
--- a/llvm/lib/ExecutionEngine/Orc/Speculation.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Speculation.cpp
@@ -96,7 +96,7 @@ void IRSpeculationLayer::emit(MaterializationResponsibility R,
M, LoadValueTy, false, GlobalValue::LinkageTypes::InternalLinkage,
ConstantInt::get(LoadValueTy, 0),
"__orc_speculate.guard.for." + Fn.getName());
- SpeculatorGuard->setAlignment(1);
+ SpeculatorGuard->setAlignment(Align::None());
SpeculatorGuard->setUnnamedAddr(GlobalValue::UnnamedAddr::Local);
BasicBlock &ProgramEntry = Fn.getEntryBlock();
OpenPOWER on IntegriCloud