workaround for the wrong clang optimization

Use a static global dummy pointer to let clang not to do the optimization.