[llvm-commits] [llvm] r146044 - /llvm/trunk/docs/WritingAnLLVMPass.html
Bill Wendling
isanbard at gmail.com
Wed Dec 7 10:18:11 PST 2011
Author: void
Date: Wed Dec 7 12:18:11 2011
New Revision: 146044
URL: http://llvm.org/viewvc/llvm-project?rev=146044&view=rev
Log:
Also pass in correct initializer here.
Modified:
llvm/trunk/docs/WritingAnLLVMPass.html
Modified: llvm/trunk/docs/WritingAnLLVMPass.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/WritingAnLLVMPass.html?rev=146044&r1=146043&r2=146044&view=diff
==============================================================================
--- llvm/trunk/docs/WritingAnLLVMPass.html (original)
+++ llvm/trunk/docs/WritingAnLLVMPass.html Wed Dec 7 12:18:11 2011
@@ -347,7 +347,7 @@
<b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> {
static char ID;
- Hello() : FunctionPass(ID) {}
+ Hello() : FunctionPass(&ID) {}
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &F) {
errs() << "<i>Hello: </i>";
More information about the llvm-commits
mailing list