diff options
author | Duncan Sands <baldrick@free.fr> | 2009-05-13 12:52:44 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-05-13 12:52:44 +0000 |
commit | 18395d2c3d03115a6b6f1496274304fc95f6178e (patch) | |
tree | bac48c4a69130a941ad7e7970c5720a0df0f8c72 /lib/Analysis/IVUsers.cpp | |
parent | 21c4bddacf8b0f10d6ba02f78da9d6591010e090 (diff) | |
download | external_llvm-18395d2c3d03115a6b6f1496274304fc95f6178e.zip external_llvm-18395d2c3d03115a6b6f1496274304fc95f6178e.tar.gz external_llvm-18395d2c3d03115a6b6f1496274304fc95f6178e.tar.bz2 |
Avoid getting a compiler warning
IVUsers.cpp: In member function ‘bool llvm::IVUsers::AddUsersIfInteresting(llvm::Instruction*)’:
IVUsers.cpp:221: warning: ‘isSigned’ may be used uninitialized in this function
with gcc-4.3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IVUsers.cpp')
-rw-r--r-- | lib/Analysis/IVUsers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index 9ec9cac..7af9130 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. |