Fix a typo. Thanks baldrick!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif 2009-03-01 09:43:41 +00:00
parent ebc6765970
commit 1a31d09a16

View File

@ -36,7 +36,7 @@ template<> struct ilist_traits<Instruction>
// 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 noone will ever notice
// forbidden (save the ilist_node<NodeTy>) so no one will ever notice
// the superposition.
return const_cast<Instruction*>(static_cast<const Instruction*>(&Sentinel));
}