Skip to content

Commit

Permalink
[ClangImporter, IRGen] Fixed the build after 9242f6a
Browse files Browse the repository at this point in the history
Minor changes to adhere to Clang API.

<rdar://problem/31305964>
  • Loading branch information
scallanan committed Mar 29, 2017
1 parent 0f7143b commit 548c67b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ClangImporter/ImportDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ makeBitFieldAccessors(ClangImporter::Implementation &Impl,
clang::VK_RValue,
clang::OK_Ordinary,
clang::SourceLocation(),
/*fpContractable=*/ false);
clang::FPOptions());

cSetterDecl->setBody(cSetterExpr);

Expand Down
6 changes: 3 additions & 3 deletions lib/IRGen/IRGenFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 548c67b

Please sign in to comment.