diff options
author | Anders Carlsson <andersca@mac.com> | 2010-01-24 00:20:05 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-01-24 00:20:05 +0000 |
commit | 08e9e453f40aff95a59bd67db49b8f050765e1f0 (patch) | |
tree | bc8f2c0029f2e659f864977e042cf3135e2e08dc /lib/CodeGen/CodeGenFunction.h | |
parent | 1b36a2fcb2cea310c01fc2a80a9da915e5d2ceb0 (diff) |
Fix a nasty bug where temporaries weren't marked as being conditional in some cases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 30ad663771..684d1ce285 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -283,6 +283,9 @@ public: /// FinishConditionalBranch - Should be called after a conditional part of an /// expression has been emitted. void FinishConditionalBranch() { + assert(ConditionalBranchLevel != 0 && + "Conditional branch mismatch!"); + --ConditionalBranchLevel; } |