| Index: src/IceAssemblerX8632.cpp
|
| diff --git a/src/IceAssemblerX8632.cpp b/src/IceAssemblerX8632.cpp
|
| index ecb6c5b794093de758509d0dcd329717ae59473b..a864b1704458197efee3c817fe3fc6fcd23baad2 100644
|
| --- a/src/IceAssemblerX8632.cpp
|
| +++ b/src/IceAssemblerX8632.cpp
|
| @@ -32,14 +32,14 @@ Address Address::ofConstPool(Assembler *Asm, const Constant *Imm) {
|
| }
|
|
|
| AssemblerX8632::~AssemblerX8632() {
|
| -#ifndef NDEBUG
|
| - for (const Label *Label : CfgNodeLabels) {
|
| - Label->FinalCheck();
|
| - }
|
| - for (const Label *Label : LocalLabels) {
|
| - Label->FinalCheck();
|
| + if (BuildDefs::asserts()) {
|
| + for (const Label *Label : CfgNodeLabels) {
|
| + Label->FinalCheck();
|
| + }
|
| + for (const Label *Label : LocalLabels) {
|
| + Label->FinalCheck();
|
| + }
|
| }
|
| -#endif
|
| }
|
|
|
| void AssemblerX8632::alignFunction() {
|
|
|