[llvm-commits] CVS: llvm/lib/Bytecode/Analyzer/Analyzer.cpp

LLVM llvm at cs.uiuc.edu
Thu Jun 10 22:12:08 PDT 2004


Changes in directory llvm/lib/Bytecode/Analyzer:

Analyzer.cpp updated: 1.4 -> 1.5

---
Log message:

Revert an unneeded interface change to Instruction.h


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Bytecode/Analyzer/Analyzer.cpp
diff -u llvm/lib/Bytecode/Analyzer/Analyzer.cpp:1.4 llvm/lib/Bytecode/Analyzer/Analyzer.cpp:1.5
--- llvm/lib/Bytecode/Analyzer/Analyzer.cpp:1.4	Thu Jun 10 17:00:54 2004
+++ llvm/lib/Bytecode/Analyzer/Analyzer.cpp	Thu Jun 10 22:06:43 2004
@@ -191,7 +191,7 @@
     bca.numOperands += Operands.size();
     if ( currFunc ) {
       currFunc->numInstructions++;
-      if ( Instruction::isPhiNode(Opcode) ) currFunc->numPhis++;
+      if ( Opcode == Instruction::PHI ) currFunc->numPhis++;
     }
     return Instruction::isTerminator(Opcode); 
   }





More information about the llvm-commits mailing list