File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Language/Fortran/Analysis Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ renameGenericDecls = trans renameExpDecl
397397renameExpDecl :: Data a => RenamerFunc (Expression (Analysis a ))
398398renameExpDecl e@ (ExpValue _ _ (ValVariable v)) = flip setUniqueName (setSourceName v e) `fmap` maybeAddUnique v NTVariable
399399-- Intrinsics get unique names for each use.
400- renameExpDecl e@ (ExpValue _ _ (ValIntrinsic v)) = flip setUniqueName (setSourceName v e) `fmap` addUnique v NTVariable
400+ renameExpDecl e@ (ExpValue _ _ (ValIntrinsic v)) = flip setUniqueName (setSourceName v e) `fmap` addUnique v NTIntrinsic
401401renameExpDecl e = return e
402402
403403-- Find all declarators within a value and then dive within those
@@ -432,9 +432,10 @@ renameEntryPointResultDecl b = return b
432432-- Rename an ExpValue variable, assuming that it is to be treated as a
433433-- reference to a previous declaration, possibly in an outer scope.
434434renameExp :: Data a => RenamerFunc (Expression (Analysis a ))
435- renameExp e@ (ExpValue _ _ (ValVariable v)) = maybe e (flip setUniqueName (setSourceName v e)) `fmap` getFromEnvs v
436- -- FIXME: do Intrinsics need handling here?
437- renameExp e = return e
435+ renameExp e@ (ExpValue _ _ (ValVariable v)) = maybe e (flip setUniqueName (setSourceName v e)) `fmap` getFromEnvs v
436+ -- Intrinsics get unique names for each use.
437+ renameExp e@ (ExpValue _ _ (ValIntrinsic v)) = flip setUniqueName (setSourceName v e) `fmap` addUnique v NTIntrinsic
438+ renameExp e = return e
438439
439440-- Rename all ExpValue variables found within the block, assuming that
440441-- they are to be treated as references to previous declarations,
You can’t perform that action at this time.
0 commit comments