D.getStorageClass() == VarDecl::Register ? ".reg." : ".auto.";
DeclPtr = GenerateStaticBlockVarDecl(D, true, Class);
}
+ } else if (1) {
+ // FIXME: The code below is disabled because is causes a regression in the
+ // testsuite.
+ CGM.ErrorUnsupported(&D, "variable-length array");
+
+ const llvm::Type *LTy = ConvertType(Ty);
+ llvm::AllocaInst *Alloc =
+ CreateTempAlloca(LTy, D.getIdentifier()->getName());
+ DeclPtr = Alloc;
} else {
const VariableArrayType *VAT = getContext().getAsVariableArrayType(Ty);
CGF.getContext().getAsVariableArrayType(TypeToSize)) {
if (E->isSizeOf())
return CGF.GetVLASize(VAT);
- else
- assert(0 && "alignof VLAs not implemented yet");
+ // FIXME: This should be an UNSUPPORTED error.
+ assert(0 && "alignof VLAs not implemented yet");
}
std::pair<uint64_t, unsigned> Info = CGF.getContext().getTypeInfo(TypeToSize);