mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 16:11:27 +08:00
Change the IR-generation of VLAs so that we capture bounds,
not sizes; so that we use well-typed allocas; and so that we properly recurse through the full set of variably-modified types. llvm-svn: 133827
This commit is contained in:
@@ -196,6 +196,10 @@ void CodeGenModule::ErrorUnsupported(const Decl *D, const char *Type,
|
||||
getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg;
|
||||
}
|
||||
|
||||
llvm::ConstantInt *CodeGenModule::getSize(CharUnits size) {
|
||||
return llvm::ConstantInt::get(SizeTy, size.getQuantity());
|
||||
}
|
||||
|
||||
void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV,
|
||||
const NamedDecl *D) const {
|
||||
// Internal definitions always have default visibility.
|
||||
|
||||
Reference in New Issue
Block a user