summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-02-03 20:00:54 +0000
committerAdrian Prantl <aprantl@apple.com>2015-02-03 20:00:54 +0000
commit95b24e9b59f7d5f6b29736dd6b7db9b032ce5701 (patch)
treed98996b548857342fa41cb1406d10e748acca83a /clang/lib/CodeGen/CGStmtOpenMP.cpp
parent6c5e36ae3be87fefcec9177eae3aacd115905332 (diff)
downloadbcm5719-llvm-95b24e9b59f7d5f6b29736dd6b7db9b032ce5701.tar.gz
bcm5719-llvm-95b24e9b59f7d5f6b29736dd6b7db9b032ce5701.zip
Address review feedback for r228003.
- use named constructors - get rid of MarkAsPrologue llvm-svn: 228021
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 395f6fa69ac..29743282d36 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -86,13 +86,13 @@ static void EmitOMPIfClause(CodeGenFunction &CGF, const Expr *Cond,
// Emit the 'else' code if present.
{
// There is no need to emit line number for unconditional branch.
- ApplyDebugLocation NL(CGF, ApplyDebugLocation::NoLocation);
+ auto NL = ApplyDebugLocation::CreateEmpty(CGF);
CGF.EmitBlock(ElseBlock);
}
CodeGen(/*ThenBlock*/ false);
{
// There is no need to emit line number for unconditional branch.
- ApplyDebugLocation NL(CGF, ApplyDebugLocation::NoLocation);
+ auto NL = ApplyDebugLocation::CreateEmpty(CGF);
CGF.EmitBranch(ContBlock);
}
// Emit the continuation block for code after the if.
OpenPOWER on IntegriCloud