[PATCH] D43802: [analyzer] Remove redundant check
George Karpenkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 11:31:10 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL326234: [analyzer] Remove redundant check (authored by george.karpenkov, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D43802?vs=136028&id=136119#toc
Repository:
rL LLVM
https://reviews.llvm.org/D43802
Files:
cfe/trunk/lib/StaticAnalyzer/Core/RegionStore.cpp
Index: cfe/trunk/lib/StaticAnalyzer/Core/RegionStore.cpp
===================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/RegionStore.cpp
+++ cfe/trunk/lib/StaticAnalyzer/Core/RegionStore.cpp
@@ -1401,8 +1401,6 @@
T = TR->getLocationType()->getPointeeType();
else if (const SymbolicRegion *SR = dyn_cast<SymbolicRegion>(MR))
T = SR->getSymbol()->getType()->getPointeeType();
- else if (isa<AllocaRegion>(MR))
- T = Ctx.VoidTy;
}
assert(!T.isNull() && "Unable to auto-detect binding type!");
assert(!T->isVoidType() && "Attempting to dereference a void pointer!");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43802.136119.patch
Type: text/x-patch
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180227/a3f74861/attachment.bin>
More information about the llvm-commits
mailing list