[PATCH] D20892: [esan|cfrag] Instrument GEP instr for struct field access.
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 2 15:44:45 PDT 2016
aizatsky accepted this revision.
This revision is now accepted and ready to land.
================
Comment at: lib/Transforms/Instrumentation/EfficiencySanitizer.cpp:615
@@ +614,3 @@
+ if (GepInst == nullptr || !isa<StructType>(GepInst->getSourceElementType()) ||
+ StructTyMap.count(GepInst->getSourceElementType()) == 0 ||
+ !GepInst->hasAllConstantIndices() ||
----------------
Ack. getIdentifiedStructTypes uses TypeFinder and walks over the tree.
http://reviews.llvm.org/D20892
More information about the llvm-commits
mailing list