From: Timm Bäder Date: Wed, 5 Oct 2022 04:11:57 +0000 (+0200) Subject: [clang][Interp][NFC] Zero-initialize Function::FrameSize X-Git-Tag: upstream/17.0.6~30569 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b731bd8724c2f56550f87d3c4f0fa820b8b4527;p=platform%2Fupstream%2Fllvm.git [clang][Interp][NFC] Zero-initialize Function::FrameSize 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(). --- diff --git a/clang/lib/AST/Interp/Function.h b/clang/lib/AST/Interp/Function.h index bb99ea7..67a4e27 100644 --- 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.