diff options
| author | Dan Gohman <gohman@apple.com> | 2009-02-18 05:09:16 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-02-18 05:09:16 +0000 |
| commit | 38a9631d5f04fe6b20909cfc2295f3dcc85cc873 (patch) | |
| tree | 33f284eae4e98de734f1c3187847f8c4f3d92dcd /llvm/docs | |
| parent | 5805c98526ab0c0f5f1233c6ae95c79c77217fd5 (diff) | |
| download | bcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.tar.gz bcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.zip | |
Eliminate several more unnecessary intptr_t casts.
llvm-svn: 64888
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/WritingAnLLVMPass.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/WritingAnLLVMPass.html b/llvm/docs/WritingAnLLVMPass.html index 04bd9266118..9eb97e1d66f 100644 --- a/llvm/docs/WritingAnLLVMPass.html +++ b/llvm/docs/WritingAnLLVMPass.html @@ -265,7 +265,7 @@ time.</p> <div class="doc_code"><pre> static char ID; - Hello() : FunctionPass((intptr_t)&ID) {} + Hello() : FunctionPass(&ID) {} </pre></div><p> <p> This declares pass identifier used by LLVM to identify pass. This allows LLVM to @@ -319,7 +319,7 @@ is supplied as fourth argument. </p> <b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> { static char ID; - Hello() : FunctionPass((intptr_t)&ID) {} + Hello() : FunctionPass(&ID) {} <b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &F) { llvm::cerr << "<i>Hello: </i>" << F.getName() << "\n"; |

