commit | 6f160d3d78c1b7839b6bc053339e1fdfbf0276de | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Sun Feb 12 02:17:18 2012 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Sun Feb 12 02:17:18 2012 +0000 |
tree | 73442d5879375b532e99d5ff2c0eb858acc326ec | |
parent | 6a7df9aae620801d97da72d718e9aff76eebac9b [diff] |
false is totally null! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150324 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 60a8b1c..c7f71a6 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp
@@ -2734,7 +2734,7 @@ static Function *FindCXAAtExit(Module &M, TargetLibraryInfo *TLI) { if (!TLI->has(LibFunc::cxa_atexit)) - return false; + return 0; Function *Fn = M.getFunction(TLI->getName(LibFunc::cxa_atexit));