Hmm, should happen for something like: clang -c foo.s -o foo.o -fsanitize=whatever ... but it looks like we don't diagnose that with or without your patch. I'm not sure why. http://llvm-reviews.chandlerc.com/D1341