[llvm-branch-commits] [llvm-branch] r100755 - /llvm/branches/ggreif/CallInst-operands/include/llvm/IntrinsicInst.h

Gabor Greif ggreif at gmail.com
Thu Apr 8 02:51:51 PDT 2010


Author: ggreif
Date: Thu Apr  8 04:51:51 2010
New Revision: 100755

URL: http://llvm.org/viewvc/llvm-project?rev=100755&view=rev
Log:
fix assertion text and remove trailing whitespace

Modified:
    llvm/branches/ggreif/CallInst-operands/include/llvm/IntrinsicInst.h

Modified: llvm/branches/ggreif/CallInst-operands/include/llvm/IntrinsicInst.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/include/llvm/IntrinsicInst.h?rev=100755&r1=100754&r2=100755&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/include/llvm/IntrinsicInst.h (original)
+++ llvm/branches/ggreif/CallInst-operands/include/llvm/IntrinsicInst.h Thu Apr  8 04:51:51 2010
@@ -43,7 +43,7 @@
     Intrinsic::ID getIntrinsicID() const {
       return (Intrinsic::ID)getCalledFunction()->getIntrinsicID();
     }
-    
+
     // Methods for support type inquiry through isa, cast, and dyn_cast:
     static inline bool classof(const IntrinsicInst *) { return true; }
     static inline bool classof(const CallInst *I) {
@@ -74,7 +74,7 @@
     static inline bool classof(const Value *V) {
       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
     }
-    
+
     static Value *StripCast(Value *C);
   };
 
@@ -128,7 +128,7 @@
     ConstantInt *getAlignmentCst() const {
       return cast<ConstantInt>(const_cast<Value*>(getOperand(3)));
     }
-    
+
     unsigned getAlignment() const {
       return getAlignmentCst()->getZExtValue();
     }
@@ -151,15 +151,15 @@
              "setLength called with value of wrong type!");
       setOperand(2, L);
     }
-    
+
     void setAlignment(Constant* A) {
       setOperand(3, A);
     }
-    
+
     const Type *getAlignmentType() const {
       return getOperand(3)->getType();
     }
-    
+
     // Methods for support type inquiry through isa, cast, and dyn_cast:
     static inline bool classof(const MemIntrinsic *) { return true; }
     static inline bool classof(const IntrinsicInst *I) {
@@ -183,13 +183,13 @@
     /// get* - Return the arguments to the instruction.
     ///
     Value *getValue() const { return const_cast<Value*>(getOperand(1)); }
-    
+
     void setValue(Value *Val) {
       assert(getValue()->getType() == Val->getType() &&
-             "setSource called with pointer of wrong type!");
+             "setValue called with value of wrong type!");
       setOperand(1, Val);
     }
-    
+
     // Methods for support type inquiry through isa, cast, and dyn_cast:
     static inline bool classof(const MemSetInst *) { return true; }
     static inline bool classof(const IntrinsicInst *I) {
@@ -199,7 +199,7 @@
       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
     }
   };
-  
+
   /// MemTransferInst - This class wraps the llvm.memcpy/memmove intrinsics.
   ///
   class MemTransferInst : public MemIntrinsic {
@@ -207,18 +207,18 @@
     /// get* - Return the arguments to the instruction.
     ///
     Value *getRawSource() const { return const_cast<Value*>(getOperand(1)); }
-    
+
     /// getSource - This is just like getRawSource, but it strips off any cast
     /// instructions that feed it, giving the original input.  The returned
     /// value is guaranteed to be a pointer.
     Value *getSource() const { return getRawSource()->stripPointerCasts(); }
-    
+
     void setSource(Value *Ptr) {
       assert(getRawSource()->getType() == Ptr->getType() &&
              "setSource called with pointer of wrong type!");
       setOperand(1, Ptr);
     }
-    
+
     // Methods for support type inquiry through isa, cast, and dyn_cast:
     static inline bool classof(const MemTransferInst *) { return true; }
     static inline bool classof(const IntrinsicInst *I) {
@@ -229,8 +229,8 @@
       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
     }
   };
-  
-  
+
+
   /// MemCpyInst - This class wraps the llvm.memcpy intrinsic.
   ///
   class MemCpyInst : public MemTransferInst {
@@ -272,7 +272,7 @@
       return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
     }
   };
-  
+
   /// MemoryUseIntrinsic - This is the common base class for the memory use
   /// marker intrinsics.
   ///





More information about the llvm-branch-commits mailing list