commit | 8d9ebae7ba382d3151e4a7d336578d9b92f73c3c | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Dec 13 04:47:15 2007 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Dec 13 04:47:15 2007 +0000 |
tree | 8e80833f0c2c4e4e0085e835b8710a0fca120a77 | |
parent | aa715be95578de1e1741d1ab3517f393c763e836 [diff] [blame] |
Fixed bug in live-variable analysis and uninitialized-values analysis where we incorrectly examine the expression within a sizeof() for use in computing dataflow values. This fixes: PR 1858 (http://llvm.org/bugs/show_bug.cgi?id=1858) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44982 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/LiveVariables.cpp b/Analysis/LiveVariables.cpp index eba1a77..a9322f2 100644 --- a/Analysis/LiveVariables.cpp +++ b/Analysis/LiveVariables.cpp
@@ -93,6 +93,7 @@ Stmt *S = U->getSubExpr(); switch (U->getOpcode()) { + case UnaryOperator::SizeOf: return; case UnaryOperator::PostInc: case UnaryOperator::PostDec: case UnaryOperator::PreInc: