Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: src/IceCfg.h

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceBrowserCompileServer.cpp ('k') | src/IceCfg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index c231860388176b094fe83665c1c744db506af1bb..e96804cede2c792a43c430de958ffd2a0bcfa564 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -207,14 +207,14 @@ private:
GlobalContext *Ctx;
uint32_t SequenceNumber; // output order for emission
VerboseMask VMask;
- IceString FunctionName;
- Type ReturnType;
- bool IsInternalLinkage;
- bool HasError;
- bool FocusedTiming;
- IceString ErrorMessage;
- CfgNode *Entry; // entry basic block
- NodeList Nodes; // linearized node list; Entry should be first
+ IceString FunctionName = "";
+ Type ReturnType = IceType_void;
+ bool IsInternalLinkage = false;
+ bool HasError = false;
+ bool FocusedTiming = false;
+ IceString ErrorMessage = "";
+ CfgNode *Entry = nullptr; // entry basic block
+ NodeList Nodes; // linearized node list; Entry should be first
std::vector<IceString> IdentifierNames;
InstNumberT NextInstNumber;
VarList Variables;
@@ -233,7 +233,7 @@ private:
// CfgNodes maintains this, but before global operations like
// register allocation, resetCurrentNode() should be called to avoid
// spurious validation failures.
- const CfgNode *CurrentNode;
+ const CfgNode *CurrentNode = nullptr;
// Maintain a pointer in TLS to the current Cfg being translated.
// This is primarily for accessing its allocator statelessly, but
« no previous file with comments | « src/IceBrowserCompileServer.cpp ('k') | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698