Skip to content
Commit 3fa32f24 authored by Nuno Lopes's avatar Nuno Lopes
Browse files

replace usage of EmitGEPOffset() with TargetData::getIndexedOffset() when the...

replace usage of EmitGEPOffset() with TargetData::getIndexedOffset() when the GEP offset is known to be constant.
With this change, we avoid relying on the IR Builder to constant fold the operations.

No functionality change intended.

llvm-svn: 158829
parent edc2971c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment