We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca151b commit 33d604aCopy full SHA for 33d604a
src/Language/Fortran/Analysis.hs
@@ -126,7 +126,10 @@ srcName _ = error "Use of srcName on non-variable."
126
127
-- | Generate an ExpValue variable with its source name == to its uniqueName.
128
genVar :: Analysis a -> SrcSpan -> String -> Expression (Analysis a)
129
-genVar a s n = ExpValue (a { uniqueName = Just n, sourceName = Just n }) s (ValVariable n)
+genVar a s n = ExpValue (a { uniqueName = Just n, sourceName = Just n }) s v
130
+ where
131
+ v | Just CTIntrinsic <- idCType =<< idType a = ValIntrinsic n
132
+ | otherwise = ValVariable n
133
134
-- | Obtain either ProgramUnit uniqueName or whatever is in the AST.
135
puName :: ProgramUnit (Analysis a) -> ProgramUnitName
0 commit comments