From 18395d2c3d03115a6b6f1496274304fc95f6178e Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 13 May 2009 12:52:44 +0000 Subject: [PATCH] =?UTF-8?q?Avoid=20getting=20a=20compiler=20warning=20=20I?= =?UTF-8?q?VUsers.cpp:=20In=20member=20function=20=E2=80=98bool=20llvm::IV?= =?UTF-8?q?Users::AddUsersIfInteresting(llvm::Instruction*)=E2=80=99:=20?= =?UTF-8?q?=20IVUsers.cpp:221:=20warning:=20=E2=80=98isSigned=E2=80=99=20m?= =?UTF-8?q?ay=20be=20used=20uninitialized=20in=20this=20function=20with=20?= =?UTF-8?q?gcc-4.3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71654 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/IVUsers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index 9ec9cacbbbe..7af91304754 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/lib/Analysis/IVUsers.cpp @@ -218,7 +218,7 @@ bool IVUsers::AddUsersIfInteresting(Instruction *I) { Loop *UseLoop = LI->getLoopFor(I->getParent()); SCEVHandle Start = SE->getIntegerSCEV(0, ISE->getType()); SCEVHandle Stride = Start; - bool isSigned; + bool isSigned = false; // Arbitrary initial value - pacifies compiler. if (!getSCEVStartAndStride(ISE, L, UseLoop, Start, Stride, isSigned, SE, DT)) return false; // Non-reducible symbolic expression, bail out.