forked from OSchip/llvm-project
[SU]int update - inactive code may get activated someday
llvm-svn: 31128
This commit is contained in:
parent
7838d655ca
commit
bd7a1d2b4d
|
@ -419,7 +419,7 @@ void GraphBuilder::visitGetElementPtrInst(User &GEP) {
|
||||||
#if 0
|
#if 0
|
||||||
if (const SequentialType *STy = cast<SequentialType>(*I)) {
|
if (const SequentialType *STy = cast<SequentialType>(*I)) {
|
||||||
CurTy = STy->getElementType();
|
CurTy = STy->getElementType();
|
||||||
if (ConstantSInt *CS = dyn_cast<ConstantSInt>(GEP.getOperand(i))) {
|
if (ConstantInt *CS = dyn_cast<ConstantInt>(GEP.getOperand(i))) {
|
||||||
Offset += CS->getValue()*TD.getTypeSize(CurTy);
|
Offset += CS->getValue()*TD.getTypeSize(CurTy);
|
||||||
} else {
|
} else {
|
||||||
// Variable index into a node. We must merge all of the elements of the
|
// Variable index into a node. We must merge all of the elements of the
|
||||||
|
|
Loading…
Reference in New Issue