Skip to content

Commit

Permalink
cleanup unneeded imports and fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eliecuevas committed Jan 3, 2025
1 parent 4bf7908 commit 5378e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions clang/lib/CodeGen/CGCilk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
#include "CGCleanup.h"
#include "clang/AST/ExprCilk.h"
#include "clang/AST/StmtCilk.h"
#include <iostream>

using namespace clang;
using namespace CodeGen;
using namespace std;

CodeGenFunction::IsSpawnedScope::IsSpawnedScope(CodeGenFunction *CGF)
: CGF(CGF), OldIsSpawned(CGF->IsSpawned),
Expand Down Expand Up @@ -539,8 +537,6 @@ CodeGenFunction::EmitCilkForRangeStmt(const CilkForRangeStmt &S,

Builder.CreateCondBr(InitialBoolCondVal, Continue.getBlock(), LoopExit.getBlock());



EmitBlock(CondBlock);
Expr::EvalResult Result;

Expand Down
6 changes: 3 additions & 3 deletions clang/lib/Parse/ParseCilk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ StmtResult Parser::ParseCilkForStatement(SourceLocation *TrailingElseLoc) {
// if (CoawaitLoc.isValid() && getLangOpts().CPlusPlus20)
// Diag(CoawaitLoc, diag::warn_deprecated_for_co_await);

// // We need to perform most of the semantic analysis for a C++0x for-range
// // statememt before parsing the body, in order to be able to deduce the type
// // of an auto-typed loop variable.
// We need to perform most of the semantic analysis for a C++0x for-range
// statememt before parsing the body, in order to be able to deduce the type
// of an auto-typed loop variable.
StmtResult ForRangeStmt;
// StmtResult ForEachStmt;

Expand Down

0 comments on commit 5378e98

Please sign in to comment.