summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-05-04 15:33:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-05-04 15:33:48 +0000
commit535c619e2b7ec4807097fc8651d2081032bde20a (patch)
treea8e782e1990a1a59c39ea17a46fd5cb2f2d49811 /projects
parent1419711ece71c3ae9b893098a73b3ce506cc5c79 (diff)
downloadllvm-535c619e2b7ec4807097fc8651d2081032bde20a.tar.gz
llvm-535c619e2b7ec4807097fc8651d2081032bde20a.tar.bz2
llvm-535c619e2b7ec4807097fc8651d2081032bde20a.tar.xz
WHILE does not "pop" a value, it "examines" to top of stack. Make this
clear in the applicable comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects')
-rw-r--r--projects/Stacker/lib/compiler/StackerCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/Stacker/lib/compiler/StackerCompiler.cpp b/projects/Stacker/lib/compiler/StackerCompiler.cpp
index c9a3e62627..d960fc4897 100644
--- a/projects/Stacker/lib/compiler/StackerCompiler.cpp
+++ b/projects/Stacker/lib/compiler/StackerCompiler.cpp
@@ -799,7 +799,7 @@ StackerCompiler::handle_while( char* todo )
BranchInst* root_br_inst = new BranchInst( test );
bb->getInstList().push_back( root_br_inst );
- // Pop the condition value
+ // Examine the condition value
LoadInst* cond = cast<LoadInst>( stack_top(test) );
// Compare the condition against 0