diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2011-07-27 06:22:51 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2011-07-27 06:22:51 +0000 |
commit | a44defeb2208376ca3113ffdddc391570ba865b8 (patch) | |
tree | 838cd3303465775b10091320e66e47e53d29eb9a /lib/Analysis/BasicAliasAnalysis.cpp | |
parent | cbdccdeea96f26198fc8225c1a32c04ca01f8a26 (diff) |
Explicitly cast narrowing conversions inside {}s that will become errors in
C++0x.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r-- | lib/Analysis/BasicAliasAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index 116076ce2a..01257a1f2a 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -374,7 +374,8 @@ DecomposeGEPExpression(const Value *V, int64_t &BaseOffs, } if (Scale) { - VariableGEPIndex Entry = {Index, Extension, Scale}; + VariableGEPIndex Entry = {Index, Extension, + static_cast<int64_t>(Scale)}; VarIndices.push_back(Entry); } } |