Commit 66c0b77
committed
fix logic error
calling evalBind was not consistent:
The original issue was that the performTrivialCopy function in
ExprEngineCXX.cpp was always calling evalBind with AtDeclInit = true,
regardless of whether it was handling:
Copy constructors (which should use AtDeclInit = true for
initialization)
Assignment operators (which should use AtDeclInit = false for
assignment)1 parent 16501fe commit 66c0b77
File tree
2 files changed
+20
-1
lines changed- clang
- lib/StaticAnalyzer/Core
- unittests/StaticAnalyzer
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
155 | 174 | | |
0 commit comments