]> granicus.if.org Git - clang/commit
[Analyzer] Always use non-reference types when creating expressions in BodyFarm.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 17 Oct 2017 22:28:18 +0000 (22:28 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 17 Oct 2017 22:28:18 +0000 (22:28 +0000)
commitac036d4cdb396fadd85b0fa2358de746117680fd
tree885c6bf892dc9ab53444b07d39bc140a2f427f5d
parentab38736dccaf7269562779f4f70d441b5c2285ec
[Analyzer] Always use non-reference types when creating expressions in BodyFarm.

Remove an option to use a reference type (on by default!) since a
non-reference type is always needed for creating expressions, functions
with multiple boolean parameters are very hard to use, and in general it
was just a booby trap for further crashes.
Furthermore, generalize call_once test case to fix some of the crashes mentioned
https://bugs.llvm.org/show_bug.cgi?id=34869
Also removes std::call_once crash.

Differential Revision: https://reviews.llvm.org/D39015

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316041 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BodyFarm.cpp
test/Analysis/call_once.cpp