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

Unified Diff: src/IceCfg.cpp

Issue 892063002: Subzero: Manage each Cfg as a std::unique_ptr<Cfg>. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review updates Created 5 years, 11 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
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index 53f9a9f76a46f7f0752c349540c246757a378fe5..f2244479a8402aec9080b716aa827ffc55ced4c3 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -49,7 +49,7 @@ Cfg::Cfg(GlobalContext *Ctx)
Cfg::~Cfg() {
assert(ICE_TLS_GET_FIELD(CurrentCfg) == this);
// Reset the thread-local CurrentCfg pointer.
- ICE_TLS_SET_FIELD(CurrentCfg, nullptr);
+ updateTLS(nullptr);
}
void Cfg::setError(const IceString &Message) {

Powered by Google App Engine
This is Rietveld 408576698