mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
[SU]int update - inactive code may get activated someday
llvm-svn: 31128
This commit is contained in:
parent
1d4f5b942b
commit
0eeabf8ff5
@ -419,7 +419,7 @@ void GraphBuilder::visitGetElementPtrInst(User &GEP) {
|
||||
#if 0
|
||||
if (const SequentialType *STy = cast<SequentialType>(*I)) {
|
||||
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);
|
||||
} else {
|
||||
// Variable index into a node. We must merge all of the elements of the
|
||||
|
Loading…
Reference in New Issue
Block a user