Form a CallExpr from __noop without parens
authorReid Kleckner <reid@kleckner.net>
Fri, 11 Jul 2014 23:54:29 +0000 (23:54 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 11 Jul 2014 23:54:29 +0000 (23:54 +0000)
commitf392ec6ecc249a34731951baacf8ccf99f1a732d
tree60b5e549d680c99d54508c7c184b0b90b0b5bf55
parentcb314ceaa9bb803f1c77e6bb32f9c74686f1d876
Form a CallExpr from __noop without parens

MSVC accepts __noop without any trailing parens and treats it like a
literal zero.  We don't treat __noop as an integer literal, but now at
least we can parse a naked __noop expression.

Reviewers: rsmith

Differential Revision: http://reviews.llvm.org/D4476

llvm-svn: 212860
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/builtin-ms-noop.cpp