[llvm-commits] [llvm] r172962 - /llvm/trunk/include/llvm/IR/BasicBlock.h
Michael Gottesman
mgottesman at apple.com
Sat Jan 19 21:12:36 PST 2013
Author: mgottesman
Date: Sat Jan 19 23:12:35 2013
New Revision: 172962
URL: http://llvm.org/viewvc/llvm-project?rev=172962&view=rev
Log:
More copy editing.
Modified:
llvm/trunk/include/llvm/IR/BasicBlock.h
Modified: llvm/trunk/include/llvm/IR/BasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/BasicBlock.h?rev=172962&r1=172961&r2=172962&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/BasicBlock.h (original)
+++ llvm/trunk/include/llvm/IR/BasicBlock.h Sat Jan 19 23:12:35 2013
@@ -35,14 +35,13 @@
/// The sentinel is relative to this instance, so we use a non-static
/// method.
Instruction *createSentinel() const {
- // since i(p)lists always publicly derive from the corresponding
- // traits, placing a data member in this class will augment i(p)list.
- // But since the NodeTy is expected to publicly derive from
- // ilist_node<NodeTy>, there is a legal viable downcast from it
- // to NodeTy. We use this trick to superpose i(p)list with a "ghostly"
- // NodeTy, which becomes the sentinel. Dereferencing the sentinel is
- // forbidden (save the ilist_node<NodeTy>) so no one will ever notice
- // the superposition.
+ // Since i(p)lists always publicly derive from their corresponding traits,
+ // placing a data member in this class will augment the i(p)list. But since
+ // the NodeTy is expected to be publicly derive from ilist_node<NodeTy>,
+ // there is a legal viable downcast from it to NodeTy. We use this trick to
+ // superimpose an i(p)list with a "ghostly" NodeTy, which becomes the
+ // sentinel. Dereferencing the sentinel is forbidden (save the
+ // ilist_node<NodeTy>), so no one will ever notice the superposition.
return static_cast<Instruction*>(&Sentinel);
}
static void destroySentinel(Instruction*) {}
@@ -292,8 +291,8 @@
assert((int)(signed char)getSubclassDataFromValue() >= 0 &&
"Refcount wrap-around");
}
- // \brief Shadow Value::setValueSubclassData with a private forwarding method
- // so that any future subclasses cannot accidentally use it.
+ /// \brief Shadow Value::setValueSubclassData with a private forwarding method
+ /// so that any future subclasses cannot accidentally use it.
void setValueSubclassData(unsigned short D) {
Value::setValueSubclassData(D);
}
More information about the llvm-commits
mailing list