Sema: __assume with side effects shouldn't result in invalid AST nodes
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 26 Feb 2015 00:57:33 +0000 (00:57 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 26 Feb 2015 00:57:33 +0000 (00:57 +0000)
commit5123664431100b019a989248e54d4c89b2cd05f9
tree5dc1627021535c1a3bc66f94cf6f84ef2026988e
parente2008ae475a06972854fc0fee233b0a0495b1e77
Sema: __assume with side effects shouldn't result in invalid AST nodes

We'd diagnose an __assume expression which contained a function call.
This would result in us wrongly returning ExprError, causing mysterious
failures later on.

llvm-svn: 230597
clang/lib/Sema/SemaChecking.cpp
clang/test/Parser/MicrosoftExtensions.cpp