Skip to content

Commit

Permalink
Switch to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Jul 17, 2024
1 parent 1cee295 commit 85ffded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/SBF/SBFRegisterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void WarnSize(int Offset, MachineFunction &MF, DebugLoc& DL)
<< " bytes, please minimize large stack variables. "
<< "Estimated function frame size: " << StackSize << " bytes."
<< " Exceeding the maximum stack offset may cause "
"unexpected behavior during execution.\n\n";
"undefined behavior during execution.\n\n";
} else {
DiagnosticInfoUnsupported DiagStackSize(
MF.getFunction(),
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/SBF/warn-stack.ll
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) #1

; CHECK: Error: warn_stack.c
; CHECK: please minimize large stack variables
; CHECK: Exceeding the maximum stack offset may cause unexpected behavior during execution.
; CHECK: Exceeding the maximum stack offset may cause undefined behavior during execution.
define void @warn() local_unnamed_addr #0 !dbg !20 {
%1 = alloca [4124 x i8], align 1
%2 = getelementptr inbounds [4124 x i8], [4124 x i8]* %1, i64 0, i64 0, !dbg !26
Expand Down

0 comments on commit 85ffded

Please sign in to comment.