aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2022-01-05 19:34:27 +0000
committerDavid Green <david.green@arm.com>2022-01-05 19:34:27 +0000
commitfffd663c871d91c431bb3f0ccda48567f0d9aca5 (patch)
tree837ecbfc013298d80bd1093f412f17eac475ecec /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent1a97138a1c98501d2f0c5e38426dc3544bd49394 (diff)
downloadllvm-fffd663c871d91c431bb3f0ccda48567f0d9aca5.zip
llvm-fffd663c871d91c431bb3f0ccda48567f0d9aca5.tar.gz
llvm-fffd663c871d91c431bb3f0ccda48567f0d9aca5.tar.bz2
[CodeGen] Initialize MaxBytesForAlignment in TargetLoweringBase::TargetLoweringBase.
This appears to be missing from D114590, causing sanitizer errors.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index f4cfe4f..ab57423 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -715,6 +715,7 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) {
SchedPreferenceInfo = Sched::ILP;
GatherAllAliasesMaxDepth = 18;
IsStrictFPEnabled = DisableStrictNodeMutation;
+ MaxBytesForAlignment = 0;
// TODO: the default will be switched to 0 in the next commit, along
// with the Target-specific changes necessary.
MaxAtomicSizeInBitsSupported = 1024;