[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 23 10:31:27 PDT 2003
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.35 -> 1.36
---
Log message:
Remove redundant const qualifiers from cast<> expressions
---
Diffs of the changes:
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.35 llvm/lib/Target/TargetData.cpp:1.36
--- llvm/lib/Target/TargetData.cpp:1.35 Tue Jun 3 21:35:35 2003
+++ llvm/lib/Target/TargetData.cpp Wed Jul 23 10:30:02 2003
@@ -69,10 +69,10 @@
void *D) {
const TargetData &TD = *(const TargetData*)D;
assert(AID == TD.AID && "Target data annotation ID mismatch!");
- const Type *Ty = cast<const Type>((const Value *)T);
+ const Type *Ty = cast<Type>((const Value *)T);
assert(isa<StructType>(Ty) &&
"Can only create StructLayout annotation on structs!");
- return new StructLayout((const StructType *)Ty, TD);
+ return new StructLayout(cast<StructType>(Ty), TD);
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list