[PATCH] D22947: [CFLAA] Check for pointer type when adding landingpad and vaarg instructions to CFLGraph
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 18:31:19 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL277096: [CFLAA] Check for pointer types in more places. (authored by gbiv).
Changed prior to commit:
https://reviews.llvm.org/D22947?vs=66052&id=66069#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22947
Files:
llvm/trunk/lib/Analysis/CFLGraph.h
Index: llvm/trunk/lib/Analysis/CFLGraph.h
===================================================================
--- llvm/trunk/lib/Analysis/CFLGraph.h
+++ llvm/trunk/lib/Analysis/CFLGraph.h
@@ -334,7 +334,8 @@
// For now, we'll handle this like a landingpad instruction (by placing
// the
// result in its own group, and having that group alias externals).
- addNode(&Inst, getAttrUnknown());
+ if (Inst.getType()->isPointerTy())
+ addNode(&Inst, getAttrUnknown());
}
static bool isFunctionExternal(Function *Fn) {
@@ -457,7 +458,8 @@
// Exceptions come from "nowhere", from our analysis' perspective.
// So we place the instruction its own group, noting that said group may
// alias externals
- addNode(&Inst, getAttrUnknown());
+ if (Inst.getType()->isPointerTy())
+ addNode(&Inst, getAttrUnknown());
}
void visitInsertValueInst(InsertValueInst &Inst) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22947.66069.patch
Type: text/x-patch
Size: 954 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160729/7cec0dfc/attachment.bin>
More information about the llvm-commits
mailing list