summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ExtractFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractFunction.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ExtractFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp
index 4cce79be61e..69d0926fb62 100644
--- a/llvm/lib/Transforms/IPO/ExtractFunction.cpp
+++ b/llvm/lib/Transforms/IPO/ExtractFunction.cpp
@@ -33,11 +33,11 @@ namespace {
Named = M.getMainFunction();
if (Named == 0) return false; // No function to extract
}
-
+
if (deleteFunc)
return deleteFunction();
- else
- return isolateFunction(M);
+ M.setModuleInlineAsm("");
+ return isolateFunction(M);
}
bool deleteFunction() {
OpenPOWER on IntegriCloud