Merge pull request #622 from jbrodman/shengfu
Fix segfault when using both -g and -MMM
This commit is contained in:
@@ -936,7 +936,7 @@ Module::AddExportedTypes(const std::vector<std::pair<const Type *,
|
|||||||
bool
|
bool
|
||||||
Module::writeOutput(OutputType outputType, const char *outFileName,
|
Module::writeOutput(OutputType outputType, const char *outFileName,
|
||||||
const char *includeFileName) {
|
const char *includeFileName) {
|
||||||
if (diBuilder != NULL && outputType != Header) {
|
if (diBuilder != NULL && (outputType != Header && outputType != Deps)) {
|
||||||
diBuilder->finalize();
|
diBuilder->finalize();
|
||||||
|
|
||||||
lStripUnusedDebugInfo(module);
|
lStripUnusedDebugInfo(module);
|
||||||
|
|||||||
Reference in New Issue
Block a user