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 | 60ddba67a883d76743feef04b8dcff262cb87d59 (patch) | |
tree | a775d17551673c6de5a185ab5447ccbb19dce583 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 0bd52403d456bd33a15c2c4a53cfadda10f70e77 (diff) | |
download | bcm5719-llvm-60ddba67a883d76743feef04b8dcff262cb87d59.tar.gz bcm5719-llvm-60ddba67a883d76743feef04b8dcff262cb87d59.zip |
Fix a nasty bug where temporaries weren't marked as being conditional in some cases.
llvm-svn: 94341
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 30ad663771b..684d1ce2859 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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; } |