From 769bff18be5cee31a9ec1c0907e4211df2ff3595 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 27 Nov 2018 01:56:26 +0000 Subject: [PATCH] [stack-safety] Fix build on gcc 5.4 llvm-svn: 347624 --- llvm/lib/Analysis/StackSafetyAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp index 53d2427..e4f21b7 100644 --- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp +++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp @@ -438,7 +438,7 @@ StackSafetyDataFlowAnalysis::StackSafetyDataFlowAnalysis( Functions.emplace(&F, FI(F)); for (auto &A : M.aliases()) if (isa(A.getBaseObject())) - Functions.emplace(&A, &A); + Functions.emplace(&A, StackSafetyInfo::FunctionInfo(&A)); } ConstantRange -- 2.7.4