diff options
author | Fangrui Song <i@maskray.me> | 2021-06-22 11:20:49 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-06-22 11:20:49 -0700 |
commit | 948016228fdfb647ad7bcc978fde173504e3df82 (patch) | |
tree | 3008495d4dc31014fb5908ad35760949eff6effd /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | b1f6ef92ec795d877a94e099e86363c39cbd359a (diff) | |
download | llvm-948016228fdfb647ad7bcc978fde173504e3df82.zip llvm-948016228fdfb647ad7bcc978fde173504e3df82.tar.gz llvm-948016228fdfb647ad7bcc978fde173504e3df82.tar.bz2 |
Improve clang -Wframe-larger-than= diagnostic
Match the style in D104667.
This commit is for non-LTO diagnostics, while D104667 is for LTO and llc diagnostics.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 02dcea2..b30bd11 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -571,7 +571,9 @@ BackendConsumer::StackSizeDiagHandler(const llvm::DiagnosticInfoStackSize &D) { // FIXME: Shouldn't need to truncate to uint32_t Diags.Report(ND->getASTContext().getFullLoc(ND->getLocation()), diag::warn_fe_frame_larger_than) - << static_cast<uint32_t>(D.getStackSize()) << Decl::castToDeclContext(ND); + << static_cast<uint32_t>(D.getStackSize()) + << static_cast<uint32_t>(D.getStackLimit()) + << Decl::castToDeclContext(ND); return true; } |