Fix invalid VLAs/VMs in Sema::ActOnVariableDeclarator, so that the variable will have the right type by the time the initializer is checked. This ensures that code like

int a[(int)(1.0 / 1.0) = { 1 } will work.

Eli, please review.
 

llvm-svn: 65725
2 files changed
tree: 1b8d1220f801b50b96758160787ec2b39f0711ea
  1. clang/
  2. llvm/