[flang] Bug fix: pass right value as MiscDetails::Kind
authorTim Keith <tkeith@nvidia.com>
Mon, 7 Jan 2019 18:10:15 +0000 (10:10 -0800)
committerTim Keith <tkeith@nvidia.com>
Tue, 8 Jan 2019 20:14:35 +0000 (12:14 -0800)
Original-commit: flang-compiler/f18@94d63399bdf5409d59107f6681905f60dfe2b639
Reviewed-on: https://github.com/flang-compiler/f18/pull/256
Tree-same-pre-rewrite: false

flang/lib/semantics/resolve-names.cc

index f25f98a..de83b8d 100644 (file)
@@ -986,7 +986,7 @@ void BaseVisitor::MakePlaceholder(
     const parser::Name &name, MiscDetails::Kind kind) {
   if (!name.symbol) {
     name.symbol = &context_->globalScope().MakeSymbol(
-        name.source, Attrs{}, MiscDetails{MiscDetails::Kind::PassName});
+        name.source, Attrs{}, MiscDetails{kind});
   }
 }