diff options
author | Mike Stump <mrs@apple.com> | 2009-02-08 22:00:53 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-02-08 22:00:53 +0000 |
commit | 225b16dbaaca36aae6934fafd0ab718393f97019 (patch) | |
tree | 45062451c868c9e6b8ee241cdbdbf941a622ce0f /lib/CodeGen/CGStmt.cpp | |
parent | 0a5166cb0a69772c202f426b3af4cddd4995d818 (diff) |
When we're at the stack depth we want, there isn't anything to do.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 5072d63593..4c634efb10 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -199,6 +199,10 @@ void CodeGenFunction::EmitBlock(llvm::BasicBlock *BB, bool IsFinished) { } bool CodeGenFunction::EmitStackUpdate(llvm::Value *V) { + // If we're already at the depth we want... + if (StackDepth == V) + return false; + // V can be 0 here, if it is, be sure to start searching from the // top of the function, as we want the next save after that point. for (unsigned int i = 0; i < StackSaveValues.size(); ++i) |