pure: backport upstream patch to build against llvm 3.3.

Closes #22409.