diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index c6f5075f640..7b97646c190 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -275,7 +275,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG) { // If we are preserving the callgraph, add edges to the stacksave/restore // functions for the calls we insert. - CallGraphNode *StackSaveCGN, *StackRestoreCGN, *CallerNode; + CallGraphNode *StackSaveCGN = 0, *StackRestoreCGN = 0, *CallerNode = 0; if (CG) { StackSaveCGN = CG->getOrInsertFunction(StackSave); StackRestoreCGN = CG->getOrInsertFunction(StackRestore);