aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-11-11 16:13:40 -0800
committerMatt Arsenault <Matthew.Arsenault@amd.com>2022-11-11 16:38:51 -0800
commit76db4e3c439e6bc2921690e501ba025998f4599d (patch)
treec8d772347df214d777512a21b441ba04e6fed599 /clang/lib/CodeGen/CodeGenAction.cpp
parentb5bf908fd7f87d2f0d74f62362a7e08366e926ff (diff)
downloadllvm-76db4e3c439e6bc2921690e501ba025998f4599d.zip
llvm-76db4e3c439e6bc2921690e501ba025998f4599d.tar.gz
llvm-76db4e3c439e6bc2921690e501ba025998f4599d.tar.bz2
clang: Fix unnecessary truncation of resource limit values
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index b723a52f..8c12a67 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -628,10 +628,9 @@ BackendConsumer::StackSizeDiagHandler(const llvm::DiagnosticInfoStackSize &D) {
if (!Loc)
return false;
- // FIXME: Shouldn't need to truncate to uint32_t
Diags.Report(*Loc, diag::warn_fe_frame_larger_than)
- << static_cast<uint32_t>(D.getStackSize())
- << static_cast<uint32_t>(D.getStackLimit())
+ << D.getStackSize()
+ << D.getStackLimit()
<< llvm::demangle(D.getFunction().getName().str());
return true;
}