Skip to content

Commit

Permalink
Merge pull request #964 from GaloisInc/llvm-space-leak
Browse files Browse the repository at this point in the history
Add strictness to fix a space leak in crucible_llvm_unsafe_assume_spec.
  • Loading branch information
brianhuffman authored Dec 9, 2020
2 parents d77950e + 1bd7de8 commit 0748c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SAWScript/Crucible/Common/MethodSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ data StateSpec ext = StateSpec
-- ^ equality, propositions, and ghost-variable conditions
, _csFreshVars :: [TypedExtCns]
-- ^ fresh variables created in this state
, _csVarTypeNames :: Map AllocIndex (TypeName ext)
, _csVarTypeNames :: !(Map AllocIndex (TypeName ext))
-- ^ names for types of variables, for diagnostics
}

Expand Down
2 changes: 1 addition & 1 deletion src/SAWScript/Crucible/LLVM/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ crucible_alloc_with_mutability_and_size mut sz alignment lty =
, "Specified alignment: " ++ show (Crucible.fromAlignment a) ++ "-byte"
]
pure a
Nothing -> pure memTyAlign
Nothing -> pure $! memTyAlign

crucible_alloc_internal lty $
LLVMAllocSpec
Expand Down

0 comments on commit 0748c96

Please sign in to comment.