Also pass in correct initializer here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2011-12-07 18:18:11 +00:00
parent 9a70df99ca
commit 996ff1469f

View File

@ -347,7 +347,7 @@ supplied as the fourth argument.</p>
<b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> {
static char ID;
Hello() : FunctionPass(ID) {}
Hello() : FunctionPass(&amp;ID) {}
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &amp;F) {
errs() &lt;&lt; "<i>Hello: </i>";