[llvm] a3358fc - More followup type changes after 05392466
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 8 11:51:51 PDT 2021
Author: Arthur Eubanks
Date: 2021-10-08T11:51:36-07:00
New Revision: a3358fcff123920498a4865d75d818d142244f61
URL: https://github.com/llvm/llvm-project/commit/a3358fcff123920498a4865d75d818d142244f61
DIFF: https://github.com/llvm/llvm-project/commit/a3358fcff123920498a4865d75d818d142244f61.diff
LOG: More followup type changes after 05392466
Added:
Modified:
llvm/include/llvm/Transforms/Utils/ASanStackFrameLayout.h
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/ASanStackFrameLayout.h b/llvm/include/llvm/Transforms/Utils/ASanStackFrameLayout.h
index 24e33686964f7..f87588db4ee2a 100644
--- a/llvm/include/llvm/Transforms/Utils/ASanStackFrameLayout.h
+++ b/llvm/include/llvm/Transforms/Utils/ASanStackFrameLayout.h
@@ -42,9 +42,9 @@ struct ASanStackVariableDescription {
// Output data struct for ComputeASanStackFrameLayout.
struct ASanStackFrameLayout {
- size_t Granularity; // Shadow granularity.
- size_t FrameAlignment; // Alignment for the entire frame.
- size_t FrameSize; // Size of the frame in bytes.
+ uint64_t Granularity; // Shadow granularity.
+ uint64_t FrameAlignment; // Alignment for the entire frame.
+ uint64_t FrameSize; // Size of the frame in bytes.
};
ASanStackFrameLayout ComputeASanStackFrameLayout(
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index ce6fded63399f..0f2cc477d9485 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -3179,7 +3179,7 @@ Value *FunctionStackPoisoner::createAllocaForLayout(
assert(Alloca->isStaticAlloca());
}
assert((ClRealignStack & (ClRealignStack - 1)) == 0);
- size_t FrameAlignment = std::max(L.FrameAlignment, (size_t)ClRealignStack);
+ uint64_t FrameAlignment = std::max(L.FrameAlignment, uint64_t(ClRealignStack));
Alloca->setAlignment(Align(FrameAlignment));
return IRB.CreatePointerCast(Alloca, IntptrTy);
}
More information about the llvm-commits
mailing list