forked from OSchip/llvm-project
Fix typo and remove unnecessary statement.
llvm-svn: 289458
This commit is contained in:
parent
bf2090e31a
commit
4b75b8726d
|
@ -2769,7 +2769,6 @@ createOffloadingBinaryDescriptorFunction(CodeGenModule &CGM, StringRef Name,
|
||||||
Args.push_back(&DummyPtr);
|
Args.push_back(&DummyPtr);
|
||||||
|
|
||||||
CodeGenFunction CGF(CGM);
|
CodeGenFunction CGF(CGM);
|
||||||
GlobalDecl();
|
|
||||||
auto &FI = CGM.getTypes().arrangeBuiltinFunctionDeclaration(C.VoidTy, Args);
|
auto &FI = CGM.getTypes().arrangeBuiltinFunctionDeclaration(C.VoidTy, Args);
|
||||||
auto FTy = CGM.getTypes().GetFunctionType(FI);
|
auto FTy = CGM.getTypes().GetFunctionType(FI);
|
||||||
auto *Fn =
|
auto *Fn =
|
||||||
|
@ -6142,7 +6141,7 @@ bool CGOpenMPRuntime::emitTargetFunctions(GlobalDecl GD) {
|
||||||
// Try to detect target regions in the function.
|
// Try to detect target regions in the function.
|
||||||
scanForTargetRegionsFunctions(FD.getBody(), CGM.getMangledName(GD));
|
scanForTargetRegionsFunctions(FD.getBody(), CGM.getMangledName(GD));
|
||||||
|
|
||||||
// We should not emit any function othen that the ones created during the
|
// We should not emit any function other that the ones created during the
|
||||||
// scanning. Therefore, we signal that this function is completely dealt
|
// scanning. Therefore, we signal that this function is completely dealt
|
||||||
// with.
|
// with.
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue