]> granicus.if.org Git - clang/commit
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)
commit21bc4ac3aee00b5af965c8721e11c18bd48fe931
tree69f1f872d1dce18266c4826e024db20b1c779651
parentcbc8a7a892d999cf38acd6983ee6a8ba084df277
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230597 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Parser/MicrosoftExtensions.cpp