[flang] clang-format didn't clean up some of the code. delete std::make_pair call.
authorEric Schweitz <eschweitz@nvidia.com>
Thu, 6 Sep 2018 17:31:47 +0000 (10:31 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Sep 2018 21:01:25 +0000 (14:01 -0700)
Original-commit: flang-compiler/f18@4defccc50d428f7b5493cde585f3436a29ce10e4
Reviewed-on: https://github.com/flang-compiler/f18/pull/170
Tree-same-pre-rewrite: false

flang/lib/semantics/resolve-labels.cc

index b5fa3c5..7c5dd73 100644 (file)
@@ -634,10 +634,9 @@ private:
   void addTargetLabelDefinition(parser::Label label,
       LabeledStmtClassificationSet labeledStmtClassificationSet) {
     CheckLabelInRange(label);
-    const auto pair{
-        programUnits_.back().targetStmts.emplace(std::make_pair(label,
-            LabeledStatementInfoTuplePOD{currentScope_, currentPosition_,
-                labeledStmtClassificationSet}))};
+    const auto pair{programUnits_.back().targetStmts.emplace(label,
+        LabeledStatementInfoTuplePOD{
+            currentScope_, currentPosition_, labeledStmtClassificationSet})};
     if (!pair.second) {
       errorHandler_.Say(currentPosition_,
           parser::MessageFormattedText{
@@ -648,21 +647,18 @@ private:
   void addLabelReferenceFromDoStmt(parser::Label label) {
     CheckLabelInRange(label);
     programUnits_.back().doStmtSources.emplace_back(
-
         label, currentScope_, currentPosition_);
   }
 
   void addLabelReferenceFromFormatStmt(parser::Label label) {
     CheckLabelInRange(label);
     programUnits_.back().formatStmtSources.emplace_back(
-
         label, currentScope_, currentPosition_);
   }
 
   void addLabelReference(parser::Label label) {
     CheckLabelInRange(label);
     programUnits_.back().otherStmtSources.emplace_back(
-
         label, currentScope_, currentPosition_);
   }