diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 408d1819bde..37c4c21578c 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -629,6 +629,8 @@ void llvm::convertToDeclaration(GlobalValue &GV) { // need to add support here for creating either a function or // variable declaration, and return the new GlobalValue* for // the caller to use. + // Support of dropping aliases is required for correct dead code + // elimination performed in thin LTO backends (see 'dropDeadSymbols'). llvm_unreachable("Expected function or variable"); } |