mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 08:54:08 +00:00
[asan] fix ndebug build with strict warnings (-Wunused-variable)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
daa1bf3b74
commit
5aafde2d5a
@ -78,6 +78,7 @@ ComputeASanStackFrameLayout(SmallVectorImpl<ASanStackVariableDescription> &Vars,
|
||||
for (size_t i = 0; i < NumVars; i++) {
|
||||
bool IsLast = i == NumVars - 1;
|
||||
size_t Alignment = std::max(Granularity, Vars[i].Alignment);
|
||||
(void)Alignment; // Used only in asserts.
|
||||
size_t Size = Vars[i].Size;
|
||||
const char *Name = Vars[i].Name;
|
||||
assert((Alignment & (Alignment - 1)) == 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user