]> granicus.if.org Git - clang/commit
PR31587: Fix handling of __FUNCSIG__ in C.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 9 Jan 2017 21:40:40 +0000 (21:40 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 9 Jan 2017 21:40:40 +0000 (21:40 +0000)
commit265da68fe2c8c48f77b82f736230690870127fa5
tree407e506240ac5d9c2cef1209215b7ecbfc4b7d68
parentfb15aef140e7e832663b2c59cd50bb8958dee871
PR31587: Fix handling of __FUNCSIG__ in C.

Fix crash if __FUNCSIG__ is used in a function without a prototype, and use
"(void)" as parameter list instead of "()" for a function with a no-parameters
prototype, matching MSVC's observed behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
test/CodeGenCXX/funcsig.cpp