[llvm-commits] [llvm] r85365 - /llvm/trunk/include/llvm/BasicBlock.h

Chris Lattner sabre at nondot.org
Tue Oct 27 20:36:46 PDT 2009


Author: lattner
Date: Tue Oct 27 22:36:44 2009
New Revision: 85365

URL: http://llvm.org/viewvc/llvm-project?rev=85365&view=rev
Log:
basic blocks can now have non-instruction users.

Modified:
    llvm/trunk/include/llvm/BasicBlock.h

Modified: llvm/trunk/include/llvm/BasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BasicBlock.h?rev=85365&r1=85364&r2=85365&view=diff

==============================================================================
--- llvm/trunk/include/llvm/BasicBlock.h (original)
+++ llvm/trunk/include/llvm/BasicBlock.h Tue Oct 27 22:36:44 2009
@@ -108,10 +108,10 @@
         Function *getParent()       { return Parent; }
 
   /// use_back - Specialize the methods defined in Value, as we know that an
-  /// BasicBlock can only be used by Instructions (specifically PHI nodes and
-  /// terminators).
-  Instruction       *use_back()       { return cast<Instruction>(*use_begin());}
-  const Instruction *use_back() const { return cast<Instruction>(*use_begin());}
+  /// BasicBlock can only be used by Users (specifically PHI nodes, terminators,
+  /// and BlockAddress's).
+  User       *use_back()       { return cast<User>(*use_begin());}
+  const User *use_back() const { return cast<User>(*use_begin());}
   
   /// getTerminator() - If this is a well formed basic block, then this returns
   /// a pointer to the terminator instruction.  If it is not, then you get a





More information about the llvm-commits mailing list