commit | e33d1008d6ef4739930835affcc982eb861b42b3 | [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 | 9b6d933c1db9ee23679b3e881822c8f1f8197f28 [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: