]> granicus.if.org Git - clang/commitdiff
Fix some -Wunused-variable warnings
authorHans Wennborg <hans@hanshq.net>
Sat, 18 Nov 2017 00:49:18 +0000 (00:49 +0000)
committerHans Wennborg <hans@hanshq.net>
Sat, 18 Nov 2017 00:49:18 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318578 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CGStmtOpenMP.cpp

index 106ce78235b5f4a71bdf2f78c53ece3a4382ae79..bed6f56f01ad36e5e3d83a3b638ad26643c0641a 100644 (file)
@@ -3923,7 +3923,6 @@ static llvm::Value *emitDestructorsFunction(CodeGenModule &CGM,
                                 ImplicitParamDecl::Other);
   Args.push_back(&GtidArg);
   Args.push_back(&TaskTypeArg);
-  FunctionType::ExtInfo Info;
   auto &DestructorFnInfo =
       CGM.getTypes().arrangeBuiltinFunctionDeclaration(KmpInt32Ty, Args);
   auto *DestructorFnTy = CGM.getTypes().GetFunctionType(DestructorFnInfo);
index 7b1afab5f2c1b202365e2d69c369ce134bb34196..91fa49a46ef1eb9980b380dd7d03d3659122efeb 100644 (file)
@@ -2268,7 +2268,6 @@ CodeGenFunction::GenerateCapturedStmtFunction(const CapturedStmt &S) {
   Args.append(CD->param_begin(), CD->param_end());
 
   // Create the function declaration.
-  FunctionType::ExtInfo ExtInfo;
   const CGFunctionInfo &FuncInfo =
     CGM.getTypes().arrangeBuiltinFunctionDeclaration(Ctx.VoidTy, Args);
   llvm::FunctionType *FuncLLVMTy = CGM.getTypes().GetFunctionType(FuncInfo);
index 45f07a8406fe10bbdae1f49b3c4e28ccd4a66434..e41feb6dd2b18ebbefc38b467b244e6a81d8eea8 100644 (file)
@@ -357,7 +357,6 @@ static llvm::Function *emitOutlinedFunctionPrologue(
       CD->param_end());
 
   // Create the function declaration.
-  FunctionType::ExtInfo ExtInfo;
   const CGFunctionInfo &FuncInfo =
       CGM.getTypes().arrangeBuiltinFunctionDeclaration(Ctx.VoidTy, TargetArgs);
   llvm::FunctionType *FuncLLVMTy = CGM.getTypes().GetFunctionType(FuncInfo);