Currently, clang will assert for non-static class member func with naked attribute because clang won't emit any prologues for such functions, so it would assert when it tries to codegen 'this' pointer
This patch fixes bug http://llvm.org/bugs/show_bug.cgi?id=22429