diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:20:51 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:20:51 +0000 | 
| commit | 583e75cce441388bc562fa225d23499261a0091e (patch) | |
| tree | 5944a7c248d4a8c858db45abc3444eb69270a3c8 /lib/CodeGen/CodeGenModule.cpp | |
| parent | 7442d6faa2719e4e7d33a7021c406c5a4facd74d (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 13 | 
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index d48bff9c30a3..19203973ff1b 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -111,6 +111,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const HeaderSearchOptions &HSO,      C.getTargetInfo().getMaxPointerWidth());    Int8PtrTy = Int8Ty->getPointerTo(0);    Int8PtrPtrTy = Int8PtrTy->getPointerTo(0); +  AllocaInt8PtrTy = Int8Ty->getPointerTo( +      M.getDataLayout().getAllocaAddrSpace());    RuntimeCC = getTargetCodeGenInfo().getABIInfo().getRuntimeCC();    BuiltinCC = getTargetCodeGenInfo().getABIInfo().getBuiltinCC(); @@ -839,10 +841,9 @@ void CodeGenModule::SetLLVMFunctionAttributes(const Decl *D,                                                const CGFunctionInfo &Info,                                                llvm::Function *F) {    unsigned CallingConv; -  AttributeListType AttributeList; -  ConstructAttributeList(F->getName(), Info, D, AttributeList, CallingConv, -                         false); -  F->setAttributes(llvm::AttributeList::get(getLLVMContext(), AttributeList)); +  llvm::AttributeList PAL; +  ConstructAttributeList(F->getName(), Info, D, PAL, CallingConv, false); +  F->setAttributes(PAL);    F->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv));  } @@ -3793,6 +3794,10 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {      AddDeferredUnusedCoverageMapping(D);      break; +  case Decl::CXXDeductionGuide: +    // Function-like, but does not result in code emission. +    break; +    case Decl::Var:    case Decl::Decomposition:      // Skip variable templates  | 
