]> granicus.if.org Git - clang/commit
Work around missing handling of temporaries bound to default arguments.
authorManuel Klimek <klimek@google.com>
Wed, 13 Aug 2014 15:25:55 +0000 (15:25 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 13 Aug 2014 15:25:55 +0000 (15:25 +0000)
commite216a3b10b0f98c204ab2a94e11e2f144922a258
tree2a5934b850e3c5f580a83319b53dbfb619fb7daf
parentf9b3fc3ddcd941d153d003f946cb41c1418ec0c8
Work around missing handling of temporaries bound to default arguments.

Yet more problems due to the missing CXXBindTemporaryExpr in the CFG for
default arguments.

Unfortunately we cannot just switch off inserting temporaries for the
corresponding default arguments, as that breaks existing tests
(test/SemaCXX/return-noreturn.cpp:245).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215554 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/ExprEngine.cpp
test/Analysis/temporaries.cpp