diff options
| author | Nick Desaulniers <ndesaulniers@google.com> | 2021-06-21 15:09:23 -0700 |
|---|---|---|
| committer | Nick Desaulniers <ndesaulniers@google.com> | 2021-06-21 15:09:25 -0700 |
| commit | 8ace12130526f450c822ca232d1f865b247d7434 (patch) | |
| tree | 4552bd2698f7a5e3a1b8148e8853106fc7d61770 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 759e7977679299296a0074bc3aba693d3386eb1c (diff) | |
[IR] convert warn-stack-size from module flag to fn attr
Otherwise, this causes issues when building with LTO for object files
that use different values.
Link: https://github.com/ClangBuiltLinux/linux/issues/1395
Reviewed By: dblaikie, MaskRay
Differential Revision: https://reviews.llvm.org/D104342
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 369c4b6ccef9..943ed5da6ede 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -787,8 +787,6 @@ void CodeGenModule::Release() { getCodeGenOpts().StackProtectorGuardOffset); if (getCodeGenOpts().StackAlignment) getModule().setOverrideStackAlignment(getCodeGenOpts().StackAlignment); - if (getCodeGenOpts().WarnStackSize != UINT_MAX) - getModule().setWarnStackSize(getCodeGenOpts().WarnStackSize); getTargetCodeGenInfo().emitTargetMetadata(*this, MangledDeclNames); |
