aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-02-03 21:58:41 +0000
committerAnders Carlsson <andersca@mac.com>2010-02-03 21:58:41 +0000
commitf6b6025a4e26bb0295a57e0efece73253038f278 (patch)
treece985f6d9901fed77e19319e5f7c5528fbe37372 /lib/CodeGen/ModuleBuilder.cpp
parent32132a08c0aecc316728d81e1d93726707fde14b (diff)
Don't try to fold DeclRefExprs that point to ParmVarDecls. This had the side-effect of always folding the expression to the default argument of the parameter. For example:
void f(int a = 10) { return a; } would always return 10, regardless of the passed in argument. This fixes another 600 test failures. We're now down to only 137 failures! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions