[ClangImporter, IRGen] Fixed the build after 9242f6ab51

Minor changes to adhere to Clang API.

<rdar://problem/31305964>
This commit is contained in:
Sean Callanan
2017-03-29 14:45:17 -07:00
parent 0f7143b477
commit 548c67bd3f
2 changed files with 4 additions and 4 deletions

View File

@@ -168,9 +168,9 @@ void IRGenFunction::emitMakeBoxUniqueCall(llvm::Value *box,
llvm::Value *alignMask,
llvm::Value *&outBox,
llvm::Value *&outValueAddress) {
auto attrs = llvm::AttributeSet::get(IGM.LLVMContext,
llvm::AttributeSet::FunctionIndex,
llvm::Attribute::NoUnwind);
auto attrs = llvm::AttributeList::get(IGM.LLVMContext,
llvm::AttributeList::FunctionIndex,
llvm::Attribute::NoUnwind);
llvm::CallInst *call = Builder.CreateCall(IGM.getMakeBoxUniqueFn(),
{box, typeMetadata, alignMask});