[llvm-commits] [PATCH] catch user error in Pass.h

Török Edwin edwintorok at gmail.com
Fri Oct 31 10:16:26 PDT 2008


The attached patch adds an assert to Pass.h to prevent mistakes like
this which successfully compiles&links:

MyFunctionPass() : FunctionPass(ID) {}

instead of

MyFunctionPass() : FunctionPass(&ID) {}

OK to commit?

Best regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pass.patch
Type: text/x-diff
Size: 742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081031/78948633/attachment.patch>

More information about the llvm-commits mailing list