[PATCH] CFLAA Bugfix -- Tag untrackable pointers (inttoptr/ptrtoint)
David Majnemer
david.majnemer at gmail.com
Thu Mar 5 20:48:05 PST 2015
================
Comment at: lib/Analysis/CFLAliasAnalysis.cpp:269-274
@@ +268,8 @@
+ void visitPtrToIntInst(PtrToIntInst &Inst) {
+ auto* Ptr = Inst.getOperand(0);
+ Output.push_back(Edge(Ptr, Ptr, EdgeType::Assign, AttrUnknown));
+ }
+
+ void visitIntToPtrInst(IntToPtrInst &Inst) {
+ auto* Ptr = &Inst;
+ Output.push_back(Edge(Ptr, Ptr, EdgeType::Assign, AttrUnknown));
----------------
Please bind pointer tokens to the variable names.
http://reviews.llvm.org/D8098
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list