| Index: src/IceCfg.cpp
|
| diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
|
| index 53f9a9f76a46f7f0752c349540c246757a378fe5..b284d06f16ffe4d8730f596a88952d9fdb3bc4fe 100644
|
| --- a/src/IceCfg.cpp
|
| +++ b/src/IceCfg.cpp
|
| @@ -46,11 +46,7 @@ Cfg::Cfg(GlobalContext *Ctx)
|
| "Attempt to build cfg when IR generation disabled");
|
| }
|
|
|
| -Cfg::~Cfg() {
|
| - assert(ICE_TLS_GET_FIELD(CurrentCfg) == this);
|
| - // Reset the thread-local CurrentCfg pointer.
|
| - ICE_TLS_SET_FIELD(CurrentCfg, nullptr);
|
| -}
|
| +Cfg::~Cfg() { assert(ICE_TLS_GET_FIELD(CurrentCfg) == nullptr); }
|
|
|
| void Cfg::setError(const IceString &Message) {
|
| HasError = true;
|
|
|