This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP] Fix crash on code emitting if errors are found.
ClosedPublic

Authored by ABataev on Mar 16 2015, 12:46 PM.

Details

Summary

Codegen for threadprivate variables (and in some other cases) may cause crash of the compiler if some diagnostic is produced later. This happens because some of the autogenerated globals are not removed from InternalVars StringMap when llvm::Module is reset.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev updated this revision to Diff 22041.Mar 16 2015, 12:46 PM
ABataev retitled this revision from to [OPENMP] Fix crash on code emitting if errors are found..
ABataev updated this object.
ABataev edited the test plan for this revision. (Show Details)
ABataev added a reviewer: rjmccall.
ABataev added a subscriber: Unknown Object (MLST).
This revision was automatically updated to reflect the committed changes.