Skip to content
Snippets Groups Projects
Commit 55cabd98 authored by Matt Arsenault's avatar Matt Arsenault
Browse files

Update for DiagnosticInfoStackSize changes

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273178 91177308-0d34-0410-b5e6-96231b3b80d8
parent 82b8b985
No related branches found
No related tags found
No related merge requests found
......@@ -415,9 +415,10 @@ BackendConsumer::StackSizeDiagHandler(const llvm::DiagnosticInfoStackSize &D) {
return false;
if (const Decl *ND = Gen->GetDeclForMangledName(D.getFunction().getName())) {
// FIXME: Shouldn't need to truncate to uint32_t
Diags.Report(ND->getASTContext().getFullLoc(ND->getLocation()),
diag::warn_fe_frame_larger_than)
<< D.getStackSize() << Decl::castToDeclContext(ND);
<< static_cast<uint32_t>(D.getStackSize()) << Decl::castToDeclContext(ND);
return true;
}
......
// REQUIRES: amdgpu-registered-target
// RUN: not %clang_cc1 -emit-codegen-only -triple=amdgcn-- %s 2>&1 | FileCheck %s
// CHECK: error: local memory limit exceeded (480000) in use_huge_lds
kernel void use_huge_lds()
{
volatile local int huge[120000];
huge[0] = 2;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment