projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fbfe55
)
[clang][Interp][NFC] Zero-initialize Function::FrameSize
author
Timm Bäder
<tbaeder@redhat.com>
Wed, 5 Oct 2022 04:11:57 +0000
(06:11 +0200)
committer
Timm Bäder
<tbaeder@redhat.com>
Fri, 14 Oct 2022 11:32:55 +0000
(13:32 +0200)
It's never going to be used since it's only uninitialized if the
function is invalid, but let's zero it for readbility of
Function::dump().
clang/lib/AST/Interp/Function.h
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/Function.h
b/clang/lib/AST/Interp/Function.h
index
bb99ea7
..
67a4e27
100644
(file)
--- a/
clang/lib/AST/Interp/Function.h
+++ b/
clang/lib/AST/Interp/Function.h
@@
-167,7
+167,7
@@
private:
/// Declaration this function was compiled from.
const FunctionDecl *F;
/// Local area size: storage + metadata.
- unsigned FrameSize;
+ unsigned FrameSize
= 0
;
/// Size of the argument stack.
unsigned ArgSize;
/// Program code.