[llvm-commits] CVS: llvm/include/llvm/IntrinsicInst.h

Jeff Cohen jeffc at jolt-lang.org
Sat Jan 1 10:58:34 PST 2005



Changes in directory llvm/include/llvm:

IntrinsicInst.h updated: 1.4 -> 1.5
---
Log message:

Fix bountiful sources of VC++ 'possible loss of data' warnings

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

Index: llvm/include/llvm/IntrinsicInst.h
diff -u llvm/include/llvm/IntrinsicInst.h:1.4 llvm/include/llvm/IntrinsicInst.h:1.5
--- llvm/include/llvm/IntrinsicInst.h:1.4	Mon Nov 22 11:18:05 2004
+++ llvm/include/llvm/IntrinsicInst.h	Sat Jan  1 12:58:23 2005
@@ -74,10 +74,10 @@
   struct DbgStopPointInst : public DbgInfoIntrinsic {
 
     unsigned getLineNo() const {
-      return cast<ConstantInt>(getOperand(2))->getRawValue();
+      return unsigned(cast<ConstantInt>(getOperand(2))->getRawValue());
     }
     unsigned getColNo() const {
-      return cast<ConstantInt>(getOperand(3))->getRawValue();
+      return unsigned(cast<ConstantInt>(getOperand(3))->getRawValue());
     }
     Value *getContext() const { return const_cast<Value*>(getOperand(4)); }
 






More information about the llvm-commits mailing list