diff options
author | LemonBoy <thatlemon@gmail.com> | 2021-04-06 20:40:15 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2021-04-07 09:04:25 +0200 |
commit | 03f7b13d4452e3ee7749ed0cd354071eced25502 (patch) | |
tree | 704fa67b424dcb3ce11ac8c4de82f65fa2839a03 /clang/lib/Basic/SourceManager.cpp | |
parent | fee330824a2b3d7e502a27e1464c418a4663d7a3 (diff) | |
download | llvm-03f7b13d4452e3ee7749ed0cd354071eced25502.zip llvm-03f7b13d4452e3ee7749ed0cd354071eced25502.tar.gz llvm-03f7b13d4452e3ee7749ed0cd354071eced25502.tar.bz2 |
[X86] Initialize TargetOptions::StackProtectorGuardOffset member to its default value
D88631 introduced a set of knobs to tweak how the stack protector is codegen'd for x86 targets, including the offset from the base register where the stack cookie is located. The `StackProtectorGuardOffset` field in `TargetOptions` was left uninitialized instead of being reset to its neutral value -1, making it possible to emit nonsensical code if the frontend doesn't change the field value at all before feeding the `TargetOptions` to the target machine initializer.
Reviewed By: nickdesaulniers
Differential Revision: https://reviews.llvm.org/D99952
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions