[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 3 12:46:01 PST 2003
Changes in directory llvm/lib/VMCore:
Type.cpp updated: 1.78 -> 1.79
---
Log message:
Fix InstCombine/2003-11-03-VarargsCallBug.ll
---
Diffs of the changes: (+3 -4)
Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.78 llvm/lib/VMCore/Type.cpp:1.79
--- llvm/lib/VMCore/Type.cpp:1.78 Mon Oct 20 14:43:21 2003
+++ llvm/lib/VMCore/Type.cpp Mon Nov 3 12:44:58 2003
@@ -102,10 +102,9 @@
case Type::ShortTyID: return Ty == Type::UShortTy;
case Type::UIntTyID: return Ty == Type::IntTy;
case Type::IntTyID: return Ty == Type::UIntTy;
- case Type::ULongTyID:
- case Type::LongTyID:
- case Type::PointerTyID:
- return Ty == Type::ULongTy || Ty == Type::LongTy || isa<PointerType>(Ty);
+ case Type::ULongTyID: return Ty == Type::LongTy;
+ case Type::LongTyID: return Ty == Type::ULongTy;
+ case Type::PointerTyID: return isa<PointerType>(Ty);
default:
return false; // Other types have no identity values
}
More information about the llvm-commits
mailing list