From ac4c1760b21c811b708c1a4e1dcd7ac47ca8565e Mon Sep 17 00:00:00 2001 From: Jianzhou Zhao Date: Wed, 3 Mar 2021 04:47:00 +0000 Subject: [PATCH] Fix the build error caused by D97570 --- llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index 2c02acf..21a7163 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -1899,7 +1899,7 @@ Align DFSanFunction::getShadowAlign(Align InstAlignment) { Align DFSanFunction::getOriginAlign(Align InstAlignment) { const Align Alignment = llvm::assumeAligned(InstAlignment.value()); - return Align(std::max(kMinOriginAlignment, Alignment)); + return Align(std::max(MinOriginAlignment, Alignment)); } bool DFSanFunction::useCallbackLoadLabelAndOrigin(uint64_t Size, @@ -1917,7 +1917,7 @@ bool DFSanFunction::useCallbackLoadLabelAndOrigin(uint64_t Size, return false; const Align Alignment = llvm::assumeAligned(InstAlignment.value()); - if (Alignment >= kMinOriginAlignment && + if (Alignment >= MinOriginAlignment && Size % (64 / DFS.ShadowWidthBits) == 0) return false; -- 2.7.4