Also pass in correct initializer here.

llvm-svn: 146044
This commit is contained in:
Bill Wendling 2011-12-07 18:18:11 +00:00
parent 7f882399b8
commit 82d9272fc2
1 changed files with 1 additions and 1 deletions

View File

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