[clang][Interp][NFC] Zero-initialize Function::FrameSize
authorTimm Bäder <tbaeder@redhat.com>
Wed, 5 Oct 2022 04:11:57 +0000 (06:11 +0200)
committerTimm 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

index bb99ea7..67a4e27 100644 (file)
@@ -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.