aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/ExprTypeConvert.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-09 05:53:38 +0000
committerChris Lattner <sabre@nondot.org>2004-01-09 05:53:38 +0000
commit559d519549072fc7c3ca3ee5dae78733096f22c0 (patch)
treee8b6ee109ca5e55576e1d29d12dce83b8e99e68c /lib/Transforms/ExprTypeConvert.cpp
parentf173842577ca243413294cdf074a7c9e31163688 (diff)
Finegrainify namespacification
add flags for PR82 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ExprTypeConvert.cpp')
-rw-r--r--lib/Transforms/ExprTypeConvert.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp
index 25b41904d3..3fce96b628 100644
--- a/lib/Transforms/ExprTypeConvert.cpp
+++ b/lib/Transforms/ExprTypeConvert.cpp
@@ -799,6 +799,7 @@ static bool OperandConvertibleToType(User *U, Value *V, const Type *Ty,
// stream, so we have to delete it when we're done.
//
if (DataSize != 1) {
+ // FIXME, PR82
TempScale = BinaryOperator::create(Instruction::Mul, Index,
ConstantSInt::get(Type::LongTy,
DataSize));
@@ -1011,6 +1012,7 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal,
if (const CompositeType *CT = dyn_cast<CompositeType>(LoadedTy)) {
std::vector<Value*> Indices;
+ // FIXME, PR82
Indices.push_back(ConstantSInt::get(Type::LongTy, 0));
unsigned Offset = 0; // No offset, get first leaf.
@@ -1047,6 +1049,7 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal,
const StructType *SElTy = cast<StructType>(ElTy);
std::vector<Value*> Indices;
+ // FIXME, PR82
Indices.push_back(Constant::getNullValue(Type::LongTy));
unsigned Offset = 0;
@@ -1076,6 +1079,7 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal,
if (isa<StructType>(ValTy)) {
std::vector<Value*> Indices;
+ // FIXME: PR82
Indices.push_back(Constant::getNullValue(Type::LongTy));
unsigned Offset = 0;
@@ -1109,6 +1113,7 @@ static void ConvertOperandToType(User *U, Value *OldVal, Value *NewVal,
if (DataSize != 1) {
// Insert a multiply of the old element type is not a unit size...
Index = BinaryOperator::create(Instruction::Mul, Index,
+ // FIXME: PR82
ConstantSInt::get(Type::LongTy, DataSize),
"scale", It);
}