[llvm-commits] [llvm] r49284 - /llvm/trunk/lib/CodeGen/MachineFunction.cpp

Chris Lattner sabre at nondot.org
Sun Apr 6 14:46:45 PDT 2008


Author: lattner
Date: Sun Apr  6 16:46:45 2008
New Revision: 49284

URL: http://llvm.org/viewvc/llvm-project?rev=49284&view=rev
Log:
Silence warning when no assertions.

Modified:
    llvm/trunk/lib/CodeGen/MachineFunction.cpp

Modified: llvm/trunk/lib/CodeGen/MachineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineFunction.cpp?rev=49284&r1=49283&r2=49284&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/MachineFunction.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineFunction.cpp Sun Apr  6 16:46:45 2008
@@ -317,7 +317,8 @@
 
 void MachineFunction::destruct(const Function *Fn) {
   bool Deleted = Fn->deleteAnnotation(MF_AID);
-  assert(Deleted && "Machine code did not exist for function!");
+  assert(Deleted && "Machine code did not exist for function!"); 
+  Deleted = Deleted; // silence warning when no assertions.
 }
 
 MachineFunction& MachineFunction::get(const Function *F)





More information about the llvm-commits mailing list