From 3eed182e2d791faaa2dd4aad14328394e133de3c Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 18 Dec 2009 21:07:18 +0000 Subject: [PATCH] Fix gcc warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91715 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Metadata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index ba89e09ae56..d632f8d4fc1 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -173,12 +173,13 @@ bool MDNode::getLocalFunction(Function *LocalFunction, // different function. return false; - if (LocalFunctionTemp) + if (LocalFunctionTemp) { if (!LocalFunction) LocalFunction = LocalFunctionTemp; else if (LocalFunction != LocalFunctionTemp) // This MDNode contains operands that are local to different functions. return false; + } } return true; -- 2.34.1