[llvm-commits] [llvm] r66839 - /llvm/trunk/include/llvm/Instructions.h

Gabor Greif ggreif at gmail.com
Thu Mar 12 16:13:03 PDT 2009


Author: ggreif
Date: Thu Mar 12 18:13:03 2009
New Revision: 66839

URL: http://llvm.org/viewvc/llvm-project?rev=66839&view=rev
Log:
cosmetic change, in preparation of future change

Modified:
    llvm/trunk/include/llvm/Instructions.h

Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=66839&r1=66838&r2=66839&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Thu Mar 12 18:13:03 2009
@@ -1157,13 +1157,13 @@
   /// indirect function invocation.
   ///
   Function *getCalledFunction() const {
-    return dyn_cast<Function>(getOperand(0));
+    return dyn_cast<Function>(Op<0>());
   }
 
   /// getCalledValue - Get a pointer to the function that is invoked by this
   /// instruction
-  const Value *getCalledValue() const { return getOperand(0); }
-        Value *getCalledValue()       { return getOperand(0); }
+  const Value *getCalledValue() const { return Op<0>(); }
+        Value *getCalledValue()       { return Op<0>(); }
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const CallInst *) { return true; }





More information about the llvm-commits mailing list