diff options
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index fc6e884..e23e843 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -1428,11 +1428,11 @@ namespace { } bool destroy(bool RunDestructors = true) { bool OK = cleanup(Info, RunDestructors, OldStackSize); - OldStackSize = -1U; + OldStackSize = std::numeric_limits<unsigned>::max(); return OK; } ~ScopeRAII() { - if (OldStackSize != -1U) + if (OldStackSize != std::numeric_limits<unsigned>::max()) destroy(false); // Body moved to a static method to encourage the compiler to inline away // instances of this class. |