[clang] 7db7a35 - Fix uninitialized XRayArg
Ian Levesque via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 21:21:05 PDT 2020
Author: Ian Levesque
Date: 2020-09-25T00:20:36-04:00
New Revision: 7db7a355453887906d12ffb67df8fbaa5e9e873d
URL: https://github.com/llvm/llvm-project/commit/7db7a355453887906d12ffb67df8fbaa5e9e873d
DIFF: https://github.com/llvm/llvm-project/commit/7db7a355453887906d12ffb67df8fbaa5e9e873d.diff
LOG: Fix uninitialized XRayArg
Added:
Modified:
clang/include/clang/Driver/XRayArgs.h
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/XRayArgs.h b/clang/include/clang/Driver/XRayArgs.h
index 4c18fecd2763..6ed99a127669 100644
--- a/clang/include/clang/Driver/XRayArgs.h
+++ b/clang/include/clang/Driver/XRayArgs.h
@@ -33,7 +33,7 @@ class XRayArgs {
bool XRayIgnoreLoops = false;
bool XRayFunctionIndex;
int XRayFunctionGroups = 1;
- int XRaySelectedFunctionGroup;
+ int XRaySelectedFunctionGroup = 0;
public:
/// Parses the XRay arguments from an argument list.
More information about the cfe-commits
mailing list