[PATCH] trivial: remove unused variable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] trivial: remove unused variable

Benoit Boissinot-4
fix the following warning:

FastDSE.cpp: In member function ‘bool<unnamed>::FDSE::handleEndBlock(llvm::BasicBlock&, llvm::SetVector<llvm::Instruction*, std::vector<llvm::Instruction*, std::allocator<llvm::Instruction*> >, llvm::SmallSet<llvm::Instruction*, 16u> >&)’:
FastDSE.cpp:174: warning: unused variable ‘AA’

--- a/lib/Transforms/Scalar/FastDSE.cpp (revision 39772)
+++ b/lib/Transforms/Scalar/FastDSE.cpp (working copy)
@@ -171,7 +171,6 @@
 /// handleEndBlock - Remove dead stores to stack-allocated locations in the function
 /// end block
 bool FDSE::handleEndBlock(BasicBlock& BB, SetVector<Instruction*>& possiblyDead) {
-  AliasAnalysis &AA = getAnalysis<AliasAnalysis>();
   MemoryDependenceAnalysis &MD = getAnalysis<MemoryDependenceAnalysis>();
   
   bool MadeChange = false;

--
:wq
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev