Skip to content
Commit 7c55265c authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

[CodeGen] Fix a crash that occurs when a non-trivial C struct with a

volatile array field is copied.

The crash occurs because method 'visitArray' passes a null FieldDecl to
method 'visit' and some of the methods called downstream expect a
non-null FieldDecl to be passed.

This reapplies r330151 with a fix to the test case.

rdar://problem/33599681

llvm-svn: 330155
parent 9ff8083d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment