[llvm] fffd663 - [CodeGen] Initialize MaxBytesForAlignment in TargetLoweringBase::TargetLoweringBase.
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 5 11:34:32 PST 2022
Author: David Green
Date: 2022-01-05T19:34:27Z
New Revision: fffd663c871d91c431bb3f0ccda48567f0d9aca5
URL: https://github.com/llvm/llvm-project/commit/fffd663c871d91c431bb3f0ccda48567f0d9aca5
DIFF: https://github.com/llvm/llvm-project/commit/fffd663c871d91c431bb3f0ccda48567f0d9aca5.diff
LOG: [CodeGen] Initialize MaxBytesForAlignment in TargetLoweringBase::TargetLoweringBase.
This appears to be missing from D114590, causing sanitizer errors.
Added:
Modified:
llvm/lib/CodeGen/TargetLoweringBase.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index f4cfe4f341cb..ab574232e367 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;
More information about the llvm-commits
mailing list