Skip to content

Commit

Permalink
Merge pull request #589 from GaloisInc/issue583
Browse files Browse the repository at this point in the history
Avoid generating 1-tuple Cryptol types from 1-field LLVM struct types.
  • Loading branch information
brianhuffman authored Nov 16, 2019
2 parents 90cd4da + bcb6da9 commit 47aa9f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SAWScript/Crucible/LLVM/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,9 @@ cryptolTypeOfActual dl mt =
Crucible.StructType si ->
do let memtypes = V.toList (Crucible.siFieldTypes si)
ctys <- traverse (cryptolTypeOfActual dl) memtypes
return $ Cryptol.tTuple ctys
case ctys of
[cty] -> return cty
_ -> return $ Cryptol.tTuple ctys
_ ->
Nothing

Expand Down

0 comments on commit 47aa9f3

Please sign in to comment.