[www-releases] r225843 - Add documentation for 3.5.1

Tom Stellard thomas.stellard at amd.com
Tue Jan 13 14:55:45 PST 2015


Added: www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ExprConstant_8cpp_source.html
URL: http://llvm.org/viewvc/llvm-project/www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ExprConstant_8cpp_source.html?rev=225843&view=auto
==============================================================================
--- www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ExprConstant_8cpp_source.html (added)
+++ www-releases/trunk/3.5.1/tools/clang/docs/doxygen/html/ExprConstant_8cpp_source.html Tue Jan 13 16:55:20 2015
@@ -0,0 +1,8775 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="keywords" content="clang,LLVM,Low Level Virtual Machine,C,C++,doxygen,API,frontend,documentation"/>
+<meta name="description" content="C++ source code API documentation for clang."/>
+<title>clang: ExprConstant.cpp Source File</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head><body>
+<p class="title">clang API Documentation</p>
+<!-- Generated by Doxygen 1.8.3.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.html"><span>Main Page</span></a></li>
+      <li><a href="pages.html"><span>Related Pages</span></a></li>
+      <li><a href="modules.html"><span>Modules</span></a></li>
+      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+      <li><a href="annotated.html"><span>Classes</span></a></li>
+      <li class="current"><a href="files.html"><span>Files</span></a></li>
+      <li>
+        <div id="MSearchBox" class="MSearchBoxInactive">
+        <span class="left">
+          <img id="MSearchSelect" src="search/mag_sel.png"
+               onmouseover="return searchBox.OnSearchSelectShow()"
+               onmouseout="return searchBox.OnSearchSelectHide()"
+               alt=""/>
+          <input type="text" id="MSearchField" value="Search" accesskey="S"
+               onfocus="searchBox.OnSearchFieldFocus(true)" 
+               onblur="searchBox.OnSearchFieldFocus(false)" 
+               onkeyup="searchBox.OnSearchFieldChange(event)"/>
+          </span><span class="right">
+            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+          </span>
+        </div>
+      </li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.html"><span>File List</span></a></li>
+      <li><a href="globals.html"><span>File Members</span></a></li>
+    </ul>
+  </div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+     onmouseover="return searchBox.OnSearchSelectShow()"
+     onmouseout="return searchBox.OnSearchSelectHide()"
+     onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void
 (0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark"> </span>Pages</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0" 
+        name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><a class="el" href="dir_f65986501076cc710d4b9355ae3fe06d.html">clang</a></li><li class="navelem"><a class="el" href="dir_87e2a7550f83bd8cbfc92736891468fc.html">lib</a></li><li class="navelem"><a class="el" href="dir_d3636efc55c6148efe36c59ffa01cb41.html">AST</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">ExprConstant.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<a href="ExprConstant_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span> <span class="comment">//===--- ExprConstant.cpp - Expression Constant Evaluator -----------------===//</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno">    2</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span> <span class="comment">//                     The LLVM Compiler Infrastructure</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span> <span class="comment">// This file is distributed under the University of Illinois Open Source</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span> <span class="comment">// License. See LICENSE.TXT for details.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span> <span class="comment">// This file implements the Expr constant evaluator.</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span> <span class="comment">// Constant expression evaluation produces four main results:</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span> <span class="comment">//  * A success/failure flag indicating whether constant folding was successful.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span> <span class="comment">//    This is the 'bool' return value used by most of the code in this file. A</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span> <span class="comment">//    'false' return value indicates that constant folding has failed, and any</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span> <span class="comment">//    appropriate diagnostic has already been produced.</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span> <span class="comment">//  * An evaluated result, valid only if constant folding has not failed.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span> <span class="comment">//  * A flag indicating if evaluation encountered (unevaluated) side-effects.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span> <span class="comment">//    These arise in cases such as (sideEffect(), 0) and (sideEffect() || 1),</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno">   23</span> <span class="comment">//    where it is possible to determine the evaluated result regardless.</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span> <span class="comment">//  * A set of notes indicating why the evaluation was not a constant expression</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span> <span class="comment">//    (under the C++11 / C++1y rules only, at the moment), or, if folding failed</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span> <span class="comment">//    too, why the expression could not be folded.</span></div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span> <span class="comment">// If we are checking for a potential constant expression, failure to constant</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span> <span class="comment">// fold a potential constant sub-expression will be indicated by a 'false'</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span> <span class="comment">// return value (the expression could not be folded) and no diagnostic (the</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span> <span class="comment">// expression is not necessarily non-constant).</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span> <span class="comment">//</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span> </div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span> <span class="preprocessor">#include "<a class="code" href="APValue_8h.html">clang/AST/APValue.h</a>"</span></div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span> <span class="preprocessor">#include "<a class="code" href="ASTContext_8h.html" title="Defines the clang::ASTContext interface.">clang/AST/ASTContext.h</a>"</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span> <span class="preprocessor">#include "<a class="code" href="ASTDiagnostic_8h.html">clang/AST/ASTDiagnostic.h</a>"</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span> <span class="preprocessor">#include "<a class="code" href="CharUnits_8h.html">clang/AST/CharUnits.h</a>"</span></div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span> <span class="preprocessor">#include "<a class="code" href="Expr_8h.html">clang/AST/Expr.h</a>"</span></div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span> <span class="preprocessor">#include "<a class="code" href="RecordLayout_8h.html">clang/AST/RecordLayout.h</a>"</span></div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span> <span class="preprocessor">#include "<a class="code" href="StmtVisitor_8h.html">clang/AST/StmtVisitor.h</a>"</span></div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span> <span class="preprocessor">#include "<a class="code" href="TypeLoc_8h.html" title="Defines the clang::TypeLoc interface and its subclasses.">clang/AST/TypeLoc.h</a>"</span></div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span> <span class="preprocessor">#include "<a class="code" href="Builtins_8h.html" title="Defines enum values for all the target-independent builtin functions.">clang/Basic/Builtins.h</a>"</span></div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span> <span class="preprocessor">#include "<a class="code" href="include_2clang_2Basic_2TargetInfo_8h.html" title="Defines the clang::TargetInfo interface.">clang/Basic/TargetInfo.h</a>"</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span> <span class="preprocessor">#include "llvm/ADT/SmallString.h"</span></div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span> <span class="preprocessor">#include "llvm/Support/raw_ostream.h"</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span> <span class="preprocessor">#include <cstring></span></div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span> <span class="preprocessor">#include <functional></span></div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span> </div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span> <span class="keyword">using namespace </span>clang;</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span> <span class="keyword">using</span> llvm::APSInt;</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span> <span class="keyword">using</span> llvm::APFloat;</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span> </div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ae3a8c8a118cc159cd5b58d46c3047b6a">IsGlobalLValue</a>(<a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> B);</div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span> </div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>   <span class="keyword">struct </span>LValue;</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>   <span class="keyword">struct </span>CallStackFrame;</div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>   <span class="keyword">struct </span>EvalInfo;</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span> </div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>   <span class="keyword">static</span> <a class="code" href="classclang_1_1QualType.html">QualType</a> getType(<a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> B) {</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>     <span class="keywordflow">if</span> (!B) <span class="keywordflow">return</span> <a class="code" href="classclang_1_1QualType.html">QualType</a>();</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *D = B.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>())</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>       <span class="keywordflow">return</span> D->getType();</div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span> </div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *<a class="code" href="classclang_1_1Base.html">Base</a> = B.get<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a>*>();</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span> </div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>     <span class="comment">// For a materialized temporary, the type of the temporary we materialized</span></div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>     <span class="comment">// may not be the type of the expression.</span></div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1MaterializeTemporaryExpr.html" title="Represents a prvalue temporary that is written into memory so that a reference can bind to it...">MaterializeTemporaryExpr</a> *MTE =</div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>             dyn_cast<MaterializeTemporaryExpr>(Base)) {</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>       <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<const Expr *, 2></a> CommaLHSs;</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>       <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<SubobjectAdjustment, 2></a> Adjustments;</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Temp = MTE->GetTemporaryExpr();</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Inner = Temp-><a class="code" href="classclang_1_1Expr.html#ab68ef9ee6af809f73ba54a9db42e8a72">skipRValueSubobjectAdjustments</a>(CommaLHSs,</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>                                                                Adjustments);</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>       <span class="comment">// Keep any cv-qualifiers from the reference if we generated a temporary</span></div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>       <span class="comment">// for it.</span></div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>       <span class="keywordflow">if</span> (Inner != Temp)</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>         <span class="keywordflow">return</span> Inner-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>     }</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span> </div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>     <span class="keywordflow">return</span> Base-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>   }</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span> <span class="comment"></span></div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span> <span class="comment">  /// Get an LValue path entry, which is known to not be an array index, as a</span></div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span> <span class="comment">  /// field or base class.</span></div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span> <span class="comment"></span>  <span class="keyword">static</span></div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>   <a class="code" href="classclang_1_1APValue.html#a3fab49a5706c824e4d0890c8d147a5e6">APValue::BaseOrMemberType</a> getAsBaseOrMember(<a class="code" href="unionclang_1_1APValue_1_1LValuePathEntry.html">APValue::LValuePathEntry</a> E) {</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>     <a class="code" href="classclang_1_1APValue.html#a3fab49a5706c824e4d0890c8d147a5e6">APValue::BaseOrMemberType</a> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>     Value.setFromOpaqueValue(E.<a class="code" href="unionclang_1_1APValue_1_1LValuePathEntry.html#a68dcc35947f88b75eba03a35ba95d2b5">BaseOrMember</a>);</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>     <span class="keywordflow">return</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>   }</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span> <span class="comment"></span></div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span> <span class="comment">  /// Get an LValue path entry, which is known to not be an array index, as a</span></div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span> <span class="comment">  /// field declaration.</span></div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span> <span class="comment"></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *getAsField(<a class="code" href="unionclang_1_1APValue_1_1LValuePathEntry.html">APValue::LValuePathEntry</a> E) {</div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>     <span class="keywordflow">return</span> dyn_cast<<a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a>>(getAsBaseOrMember(E).getPointer());</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>   }<span class="comment"></span></div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span> <span class="comment">  /// Get an LValue path entry, which is known to not be an array index, as a</span></div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span> <span class="comment">  /// base class declaration.</span></div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span> <span class="comment"></span>  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *getAsBaseClass(<a class="code" href="unionclang_1_1APValue_1_1LValuePathEntry.html">APValue::LValuePathEntry</a> E) {</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>     <span class="keywordflow">return</span> dyn_cast<<a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a>>(getAsBaseOrMember(E).getPointer());</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>   }<span class="comment"></span></div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span> <span class="comment">  /// Determine whether this LValue path entry for a base class names a virtual</span></div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span> <span class="comment">  /// base class.</span></div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span> <span class="comment"></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> isVirtualBaseClass(<a class="code" href="unionclang_1_1APValue_1_1LValuePathEntry.html">APValue::LValuePathEntry</a> E) {</div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>     <span class="keywordflow">return</span> getAsBaseOrMember(E).getInt();</div>
+<div class="line"><a name="l00110"></a><span class="lineno">  110</span>   }</div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span> <span class="comment"></span></div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span> <span class="comment">  /// Find the path length and type of the most-derived subobject in the given</span></div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span> <span class="comment">  /// path, and find the size of the containing array, if any.</span></div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span> <span class="comment"></span>  <span class="keyword">static</span></div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>   <span class="keywordtype">unsigned</span> findMostDerivedSubobject(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx, <a class="code" href="classclang_1_1QualType.html">QualType</a> Base,</div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>                                     <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<APValue::LValuePathEntry></a> Path,</div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>                                     uint64_t &ArraySize, <a class="code" href="classclang_1_1QualType.html">QualType</a> &<a class="code" href="classclang_1_1Type.html">Type</a>) {</div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span>     <span class="keywordtype">unsigned</span> MostDerivedLength = 0;</div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>     Type = Base;</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = Path.size(); I != N; ++I) {</div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span>       <span class="keywordflow">if</span> (Type-><a class="code" href="classclang_1_1Type.html#a53b83bd119ae77bc77e92dc69a8c8094">isArrayType</a>()) {</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT =</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>           cast<ConstantArrayType>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a2f9f0d5fa876bf2fb8be3fdd0fc70244">getAsArrayType</a>(Type));</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>         Type = CAT-><a class="code" href="classclang_1_1ArrayType.html#ad9681a11b43dc70a3c4db07d2a450d12">getElementType</a>();</div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>         ArraySize = CAT-><a class="code" href="classclang_1_1ConstantArrayType.html#add90924c309ad1f353431f2b63e9ba2b">getSize</a>().getZExtValue();</div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>         MostDerivedLength = I + 1;</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (Type->isAnyComplexType()) {</div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1ComplexType.html">ComplexType</a> *CT = Type-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1ComplexType.html">ComplexType</a>>();</div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>         Type = CT-><a class="code" href="classclang_1_1ComplexType.html#a003ef818ba80a0004dd20256766803a6">getElementType</a>();</div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span>         ArraySize = 2;</div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span>         MostDerivedLength = I + 1;</div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *FD = getAsField(Path[I])) {</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>         Type = FD->getType();</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>         ArraySize = 0;</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>         MostDerivedLength = I + 1;</div>
+<div class="line"><a name="l00136"></a><span class="lineno">  136</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>         <span class="comment">// Path[I] describes a base class.</span></div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>         ArraySize = 0;</div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>       }</div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span>     }</div>
+<div class="line"><a name="l00141"></a><span class="lineno">  141</span>     <span class="keywordflow">return</span> MostDerivedLength;</div>
+<div class="line"><a name="l00142"></a><span class="lineno">  142</span>   }</div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span> </div>
+<div class="line"><a name="l00144"></a><span class="lineno">  144</span>   <span class="comment">// The order of this enum is important for diagnostics.</span></div>
+<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ae6d36dd58bbc18a8d2310c55a7777c63">  145</a></span>   <span class="keyword">enum</span> <a class="code" href="ExprConstant_8cpp.html#ae6d36dd58bbc18a8d2310c55a7777c63">CheckSubobjectKind</a> {</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span>     CSK_Base, CSK_Derived, CSK_Field, CSK_ArrayToPointer, CSK_ArrayIndex,</div>
+<div class="line"><a name="l00147"></a><span class="lineno">  147</span>     CSK_This, CSK_Real, CSK_Imag</div>
+<div class="line"><a name="l00148"></a><span class="lineno">  148</span>   };</div>
+<div class="line"><a name="l00149"></a><span class="lineno">  149</span> <span class="comment"></span></div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span> <span class="comment">  /// A path from a glvalue to a subobject of that glvalue.</span></div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span> <span class="comment"></span>  <span class="keyword">struct </span>SubobjectDesignator {<span class="comment"></span></div>
+<div class="line"><a name="l00152"></a><span class="lineno">  152</span> <span class="comment">    /// True if the subobject was named in a manner not supported by C++11. Such</span></div>
+<div class="line"><a name="l00153"></a><span class="lineno">  153</span> <span class="comment">    /// lvalues can still be folded, but they are not core constant expressions</span></div>
+<div class="line"><a name="l00154"></a><span class="lineno">  154</span> <span class="comment">    /// and we cannot perform lvalue-to-rvalue conversions on them.</span></div>
+<div class="line"><a name="l00155"></a><span class="lineno">  155</span> <span class="comment"></span>    <span class="keywordtype">bool</span> Invalid : 1;</div>
+<div class="line"><a name="l00156"></a><span class="lineno">  156</span> <span class="comment"></span></div>
+<div class="line"><a name="l00157"></a><span class="lineno">  157</span> <span class="comment">    /// Is this a pointer one past the end of an object?</span></div>
+<div class="line"><a name="l00158"></a><span class="lineno">  158</span> <span class="comment"></span>    <span class="keywordtype">bool</span> IsOnePastTheEnd : 1;</div>
+<div class="line"><a name="l00159"></a><span class="lineno">  159</span> <span class="comment"></span></div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span> <span class="comment">    /// The length of the path to the most-derived object of which this is a</span></div>
+<div class="line"><a name="l00161"></a><span class="lineno">  161</span> <span class="comment">    /// subobject.</span></div>
+<div class="line"><a name="l00162"></a><span class="lineno">  162</span> <span class="comment"></span>    <span class="keywordtype">unsigned</span> MostDerivedPathLength : 30;</div>
+<div class="line"><a name="l00163"></a><span class="lineno">  163</span> <span class="comment"></span></div>
+<div class="line"><a name="l00164"></a><span class="lineno">  164</span> <span class="comment">    /// The size of the array of which the most-derived object is an element, or</span></div>
+<div class="line"><a name="l00165"></a><span class="lineno">  165</span> <span class="comment">    /// 0 if the most-derived object is not an array element.</span></div>
+<div class="line"><a name="l00166"></a><span class="lineno">  166</span> <span class="comment"></span>    uint64_t MostDerivedArraySize;</div>
+<div class="line"><a name="l00167"></a><span class="lineno">  167</span> <span class="comment"></span></div>
+<div class="line"><a name="l00168"></a><span class="lineno">  168</span> <span class="comment">    /// The type of the most derived object referred to by this address.</span></div>
+<div class="line"><a name="l00169"></a><span class="lineno">  169</span> <span class="comment"></span>    <a class="code" href="classclang_1_1QualType.html">QualType</a> MostDerivedType;</div>
+<div class="line"><a name="l00170"></a><span class="lineno">  170</span> </div>
+<div class="line"><a name="l00171"></a><span class="lineno">  171</span>     <span class="keyword">typedef</span> <a class="code" href="unionclang_1_1APValue_1_1LValuePathEntry.html">APValue::LValuePathEntry</a> PathEntry;</div>
+<div class="line"><a name="l00172"></a><span class="lineno">  172</span> <span class="comment"></span></div>
+<div class="line"><a name="l00173"></a><span class="lineno">  173</span> <span class="comment">    /// The entries on the path from the glvalue to the designated subobject.</span></div>
+<div class="line"><a name="l00174"></a><span class="lineno">  174</span> <span class="comment"></span>    <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<PathEntry, 8></a> <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>;</div>
+<div class="line"><a name="l00175"></a><span class="lineno">  175</span> </div>
+<div class="line"><a name="l00176"></a><span class="lineno">  176</span>     SubobjectDesignator() : Invalid(<a class="code" href="stdbool_8h.html#a41f9c5fb8b08eb5dc3edce4dcb37fee7">true</a>) {}</div>
+<div class="line"><a name="l00177"></a><span class="lineno">  177</span> </div>
+<div class="line"><a name="l00178"></a><span class="lineno">  178</span>     <span class="keyword">explicit</span> SubobjectDesignator(<a class="code" href="classclang_1_1QualType.html">QualType</a> T)</div>
+<div class="line"><a name="l00179"></a><span class="lineno">  179</span>       : Invalid(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>), IsOnePastTheEnd(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>), MostDerivedPathLength(0),</div>
+<div class="line"><a name="l00180"></a><span class="lineno">  180</span>         MostDerivedArraySize(0), MostDerivedType(T) {}</div>
+<div class="line"><a name="l00181"></a><span class="lineno">  181</span> </div>
+<div class="line"><a name="l00182"></a><span class="lineno">  182</span>     SubobjectDesignator(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx, <span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &V)</div>
+<div class="line"><a name="l00183"></a><span class="lineno">  183</span>       : Invalid(!V.isLValue() || !V.hasLValuePath()), IsOnePastTheEnd(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>),</div>
+<div class="line"><a name="l00184"></a><span class="lineno">  184</span>         MostDerivedPathLength(0), MostDerivedArraySize(0) {</div>
+<div class="line"><a name="l00185"></a><span class="lineno">  185</span>       <span class="keywordflow">if</span> (!Invalid) {</div>
+<div class="line"><a name="l00186"></a><span class="lineno">  186</span>         IsOnePastTheEnd = V.<a class="code" href="classclang_1_1APValue.html#a62caa9f9a0f45fe6704f6be32290323e">isLValueOnePastTheEnd</a>();</div>
+<div class="line"><a name="l00187"></a><span class="lineno">  187</span>         <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<PathEntry></a> VEntries = V.<a class="code" href="classclang_1_1APValue.html#aabeff46bf841666ff0eecfbdfd80c9d7">getLValuePath</a>();</div>
+<div class="line"><a name="l00188"></a><span class="lineno">  188</span>         <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.insert(<a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.end(), VEntries.begin(), VEntries.end());</div>
+<div class="line"><a name="l00189"></a><span class="lineno">  189</span>         <span class="keywordflow">if</span> (V.<a class="code" href="classclang_1_1APValue.html#a7b2bb5423a2a6d6465130045072c34b2">getLValueBase</a>())</div>
+<div class="line"><a name="l00190"></a><span class="lineno">  190</span>           MostDerivedPathLength =</div>
+<div class="line"><a name="l00191"></a><span class="lineno">  191</span>               findMostDerivedSubobject(Ctx, getType(V.<a class="code" href="classclang_1_1APValue.html#a7b2bb5423a2a6d6465130045072c34b2">getLValueBase</a>()),</div>
+<div class="line"><a name="l00192"></a><span class="lineno">  192</span>                                        V.<a class="code" href="classclang_1_1APValue.html#aabeff46bf841666ff0eecfbdfd80c9d7">getLValuePath</a>(), MostDerivedArraySize,</div>
+<div class="line"><a name="l00193"></a><span class="lineno">  193</span>                                        MostDerivedType);</div>
+<div class="line"><a name="l00194"></a><span class="lineno">  194</span>       }</div>
+<div class="line"><a name="l00195"></a><span class="lineno">  195</span>     }</div>
+<div class="line"><a name="l00196"></a><span class="lineno">  196</span> </div>
+<div class="line"><a name="l00197"></a><span class="lineno">  197</span>     <span class="keywordtype">void</span> setInvalid() {</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>       Invalid = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00199"></a><span class="lineno">  199</span>       <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.clear();</div>
+<div class="line"><a name="l00200"></a><span class="lineno">  200</span>     }</div>
+<div class="line"><a name="l00201"></a><span class="lineno">  201</span> <span class="comment"></span></div>
+<div class="line"><a name="l00202"></a><span class="lineno">  202</span> <span class="comment">    /// Determine whether this is a one-past-the-end pointer.</span></div>
+<div class="line"><a name="l00203"></a><span class="lineno">  203</span> <span class="comment"></span>    <span class="keywordtype">bool</span> isOnePastTheEnd()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00204"></a><span class="lineno">  204</span>       <span class="keywordflow">if</span> (IsOnePastTheEnd)</div>
+<div class="line"><a name="l00205"></a><span class="lineno">  205</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00206"></a><span class="lineno">  206</span>       <span class="keywordflow">if</span> (MostDerivedArraySize &&</div>
+<div class="line"><a name="l00207"></a><span class="lineno">  207</span>           <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>[MostDerivedPathLength - 1].ArrayIndex == MostDerivedArraySize)</div>
+<div class="line"><a name="l00208"></a><span class="lineno">  208</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00209"></a><span class="lineno">  209</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00210"></a><span class="lineno">  210</span>     }</div>
+<div class="line"><a name="l00211"></a><span class="lineno">  211</span> <span class="comment"></span></div>
+<div class="line"><a name="l00212"></a><span class="lineno">  212</span> <span class="comment">    /// Check that this refers to a valid subobject.</span></div>
+<div class="line"><a name="l00213"></a><span class="lineno">  213</span> <span class="comment"></span>    <span class="keywordtype">bool</span> isValidSubobject()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00214"></a><span class="lineno">  214</span>       <span class="keywordflow">if</span> (Invalid)</div>
+<div class="line"><a name="l00215"></a><span class="lineno">  215</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00216"></a><span class="lineno">  216</span>       <span class="keywordflow">return</span> !isOnePastTheEnd();</div>
+<div class="line"><a name="l00217"></a><span class="lineno">  217</span>     }<span class="comment"></span></div>
+<div class="line"><a name="l00218"></a><span class="lineno">  218</span> <span class="comment">    /// Check that this refers to a valid subobject, and if not, produce a</span></div>
+<div class="line"><a name="l00219"></a><span class="lineno">  219</span> <span class="comment">    /// relevant diagnostic and set the designator as invalid.</span></div>
+<div class="line"><a name="l00220"></a><span class="lineno">  220</span> <span class="comment"></span>    <span class="keywordtype">bool</span> checkSubobject(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <a class="code" href="ExprConstant_8cpp.html#ae6d36dd58bbc18a8d2310c55a7777c63">CheckSubobjectKind</a> CSK);</div>
+<div class="line"><a name="l00221"></a><span class="lineno">  221</span> <span class="comment"></span></div>
+<div class="line"><a name="l00222"></a><span class="lineno">  222</span> <span class="comment">    /// Update this designator to refer to the first element within this array.</span></div>
+<div class="line"><a name="l00223"></a><span class="lineno">  223</span> <span class="comment"></span>    <span class="keywordtype">void</span> addArrayUnchecked(<span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT) {</div>
+<div class="line"><a name="l00224"></a><span class="lineno">  224</span>       PathEntry Entry;</div>
+<div class="line"><a name="l00225"></a><span class="lineno">  225</span>       Entry.ArrayIndex = 0;</div>
+<div class="line"><a name="l00226"></a><span class="lineno">  226</span>       <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.push_back(Entry);</div>
+<div class="line"><a name="l00227"></a><span class="lineno">  227</span> </div>
+<div class="line"><a name="l00228"></a><span class="lineno">  228</span>       <span class="comment">// This is a most-derived object.</span></div>
+<div class="line"><a name="l00229"></a><span class="lineno">  229</span>       MostDerivedType = CAT-><a class="code" href="classclang_1_1ArrayType.html#ad9681a11b43dc70a3c4db07d2a450d12">getElementType</a>();</div>
+<div class="line"><a name="l00230"></a><span class="lineno">  230</span>       MostDerivedArraySize = CAT-><a class="code" href="classclang_1_1ConstantArrayType.html#add90924c309ad1f353431f2b63e9ba2b">getSize</a>().getZExtValue();</div>
+<div class="line"><a name="l00231"></a><span class="lineno">  231</span>       MostDerivedPathLength = <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.size();</div>
+<div class="line"><a name="l00232"></a><span class="lineno">  232</span>     }<span class="comment"></span></div>
+<div class="line"><a name="l00233"></a><span class="lineno">  233</span> <span class="comment">    /// Update this designator to refer to the given base or member of this</span></div>
+<div class="line"><a name="l00234"></a><span class="lineno">  234</span> <span class="comment">    /// object.</span></div>
+<div class="line"><a name="l00235"></a><span class="lineno">  235</span> <span class="comment"></span>    <span class="keywordtype">void</span> addDeclUnchecked(<span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D, <span class="keywordtype">bool</span> Virtual = <span class="keyword">false</span>) {</div>
+<div class="line"><a name="l00236"></a><span class="lineno">  236</span>       PathEntry Entry;</div>
+<div class="line"><a name="l00237"></a><span class="lineno">  237</span>       <a class="code" href="classclang_1_1APValue.html#a3fab49a5706c824e4d0890c8d147a5e6">APValue::BaseOrMemberType</a> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>(D, Virtual);</div>
+<div class="line"><a name="l00238"></a><span class="lineno">  238</span>       Entry.BaseOrMember = Value.getOpaqueValue();</div>
+<div class="line"><a name="l00239"></a><span class="lineno">  239</span>       <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.push_back(Entry);</div>
+<div class="line"><a name="l00240"></a><span class="lineno">  240</span> </div>
+<div class="line"><a name="l00241"></a><span class="lineno">  241</span>       <span class="comment">// If this isn't a base class, it's a new most-derived object.</span></div>
+<div class="line"><a name="l00242"></a><span class="lineno">  242</span>       <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *FD = dyn_cast<FieldDecl>(D)) {</div>
+<div class="line"><a name="l00243"></a><span class="lineno">  243</span>         MostDerivedType = FD->getType();</div>
+<div class="line"><a name="l00244"></a><span class="lineno">  244</span>         MostDerivedArraySize = 0;</div>
+<div class="line"><a name="l00245"></a><span class="lineno">  245</span>         MostDerivedPathLength = <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.size();</div>
+<div class="line"><a name="l00246"></a><span class="lineno">  246</span>       }</div>
+<div class="line"><a name="l00247"></a><span class="lineno">  247</span>     }<span class="comment"></span></div>
+<div class="line"><a name="l00248"></a><span class="lineno">  248</span> <span class="comment">    /// Update this designator to refer to the given complex component.</span></div>
+<div class="line"><a name="l00249"></a><span class="lineno">  249</span> <span class="comment"></span>    <span class="keywordtype">void</span> addComplexUnchecked(<a class="code" href="classclang_1_1QualType.html">QualType</a> EltTy, <span class="keywordtype">bool</span> Imag) {</div>
+<div class="line"><a name="l00250"></a><span class="lineno">  250</span>       PathEntry Entry;</div>
+<div class="line"><a name="l00251"></a><span class="lineno">  251</span>       Entry.ArrayIndex = Imag;</div>
+<div class="line"><a name="l00252"></a><span class="lineno">  252</span>       <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.push_back(Entry);</div>
+<div class="line"><a name="l00253"></a><span class="lineno">  253</span> </div>
+<div class="line"><a name="l00254"></a><span class="lineno">  254</span>       <span class="comment">// This is technically a most-derived object, though in practice this</span></div>
+<div class="line"><a name="l00255"></a><span class="lineno">  255</span>       <span class="comment">// is unlikely to matter.</span></div>
+<div class="line"><a name="l00256"></a><span class="lineno">  256</span>       MostDerivedType = EltTy;</div>
+<div class="line"><a name="l00257"></a><span class="lineno">  257</span>       MostDerivedArraySize = 2;</div>
+<div class="line"><a name="l00258"></a><span class="lineno">  258</span>       MostDerivedPathLength = <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.size();</div>
+<div class="line"><a name="l00259"></a><span class="lineno">  259</span>     }</div>
+<div class="line"><a name="l00260"></a><span class="lineno">  260</span>     <span class="keywordtype">void</span> diagnosePointerArithmetic(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, uint64_t N);<span class="comment"></span></div>
+<div class="line"><a name="l00261"></a><span class="lineno">  261</span> <span class="comment">    /// Add N to the address of this subobject.</span></div>
+<div class="line"><a name="l00262"></a><span class="lineno">  262</span> <span class="comment"></span>    <span class="keywordtype">void</span> adjustIndex(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, uint64_t N) {</div>
+<div class="line"><a name="l00263"></a><span class="lineno">  263</span>       <span class="keywordflow">if</span> (Invalid) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00264"></a><span class="lineno">  264</span>       <span class="keywordflow">if</span> (MostDerivedPathLength == <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.size() && MostDerivedArraySize) {</div>
+<div class="line"><a name="l00265"></a><span class="lineno">  265</span>         <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.back().ArrayIndex += N;</div>
+<div class="line"><a name="l00266"></a><span class="lineno">  266</span>         <span class="keywordflow">if</span> (<a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.back().ArrayIndex > MostDerivedArraySize) {</div>
+<div class="line"><a name="l00267"></a><span class="lineno">  267</span>           diagnosePointerArithmetic(Info, E, <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.back().ArrayIndex);</div>
+<div class="line"><a name="l00268"></a><span class="lineno">  268</span>           setInvalid();</div>
+<div class="line"><a name="l00269"></a><span class="lineno">  269</span>         }</div>
+<div class="line"><a name="l00270"></a><span class="lineno">  270</span>         <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00271"></a><span class="lineno">  271</span>       }</div>
+<div class="line"><a name="l00272"></a><span class="lineno">  272</span>       <span class="comment">// [expr.add]p4: For the purposes of these operators, a pointer to a</span></div>
+<div class="line"><a name="l00273"></a><span class="lineno">  273</span>       <span class="comment">// nonarray object behaves the same as a pointer to the first element of</span></div>
+<div class="line"><a name="l00274"></a><span class="lineno">  274</span>       <span class="comment">// an array of length one with the type of the object as its element type.</span></div>
+<div class="line"><a name="l00275"></a><span class="lineno">  275</span>       <span class="keywordflow">if</span> (IsOnePastTheEnd && N == (uint64_t)-1)</div>
+<div class="line"><a name="l00276"></a><span class="lineno">  276</span>         IsOnePastTheEnd = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00277"></a><span class="lineno">  277</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!IsOnePastTheEnd && N == 1)</div>
+<div class="line"><a name="l00278"></a><span class="lineno">  278</span>         IsOnePastTheEnd = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00279"></a><span class="lineno">  279</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (N != 0) {</div>
+<div class="line"><a name="l00280"></a><span class="lineno">  280</span>         diagnosePointerArithmetic(Info, E, uint64_t(IsOnePastTheEnd) + N);</div>
+<div class="line"><a name="l00281"></a><span class="lineno">  281</span>         setInvalid();</div>
+<div class="line"><a name="l00282"></a><span class="lineno">  282</span>       }</div>
+<div class="line"><a name="l00283"></a><span class="lineno">  283</span>     }</div>
+<div class="line"><a name="l00284"></a><span class="lineno">  284</span>   };</div>
+<div class="line"><a name="l00285"></a><span class="lineno">  285</span> <span class="comment"></span></div>
+<div class="line"><a name="l00286"></a><span class="lineno">  286</span> <span class="comment">  /// A stack frame in the constexpr call stack.</span></div>
+<div class="line"><a name="l00287"></a><span class="lineno">  287</span> <span class="comment"></span>  <span class="keyword">struct </span>CallStackFrame {</div>
+<div class="line"><a name="l00288"></a><span class="lineno">  288</span>     EvalInfo &Info;</div>
+<div class="line"><a name="l00289"></a><span class="lineno">  289</span> <span class="comment"></span></div>
+<div class="line"><a name="l00290"></a><span class="lineno">  290</span> <span class="comment">    /// Parent - The caller of this stack frame.</span></div>
+<div class="line"><a name="l00291"></a><span class="lineno">  291</span> <span class="comment"></span>    CallStackFrame *Caller;</div>
+<div class="line"><a name="l00292"></a><span class="lineno">  292</span> <span class="comment"></span></div>
+<div class="line"><a name="l00293"></a><span class="lineno">  293</span> <span class="comment">    /// CallLoc - The location of the call expression for this call.</span></div>
+<div class="line"><a name="l00294"></a><span class="lineno">  294</span> <span class="comment"></span>    <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> CallLoc;</div>
+<div class="line"><a name="l00295"></a><span class="lineno">  295</span> <span class="comment"></span></div>
+<div class="line"><a name="l00296"></a><span class="lineno">  296</span> <span class="comment">    /// Callee - The function which was called.</span></div>
+<div class="line"><a name="l00297"></a><span class="lineno">  297</span> <span class="comment"></span>    <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *Callee;</div>
+<div class="line"><a name="l00298"></a><span class="lineno">  298</span> <span class="comment"></span></div>
+<div class="line"><a name="l00299"></a><span class="lineno">  299</span> <span class="comment">    /// Index - The call index of this call.</span></div>
+<div class="line"><a name="l00300"></a><span class="lineno">  300</span> <span class="comment"></span>    <span class="keywordtype">unsigned</span> Index;</div>
+<div class="line"><a name="l00301"></a><span class="lineno">  301</span> <span class="comment"></span></div>
+<div class="line"><a name="l00302"></a><span class="lineno">  302</span> <span class="comment">    /// This - The binding for the this pointer in this call, if any.</span></div>
+<div class="line"><a name="l00303"></a><span class="lineno">  303</span> <span class="comment"></span>    <span class="keyword">const</span> LValue *This;</div>
+<div class="line"><a name="l00304"></a><span class="lineno">  304</span> <span class="comment"></span></div>
+<div class="line"><a name="l00305"></a><span class="lineno">  305</span> <span class="comment">    /// Arguments - Parameter bindings for this function call, indexed by</span></div>
+<div class="line"><a name="l00306"></a><span class="lineno">  306</span> <span class="comment">    /// parameters' function scope indices.</span></div>
+<div class="line"><a name="l00307"></a><span class="lineno">  307</span> <span class="comment"></span>    <a class="code" href="classclang_1_1APValue.html">APValue</a> *Arguments;</div>
+<div class="line"><a name="l00308"></a><span class="lineno">  308</span> </div>
+<div class="line"><a name="l00309"></a><span class="lineno">  309</span>     <span class="comment">// Note that we intentionally use std::map here so that references to</span></div>
+<div class="line"><a name="l00310"></a><span class="lineno">  310</span>     <span class="comment">// values are stable.</span></div>
+<div class="line"><a name="l00311"></a><span class="lineno">  311</span>     <span class="keyword">typedef</span> std::map<const void*, APValue> <a class="code" href="ParentMap_8cpp.html#a9678f6646317beaaf39f5b01eba500a4">MapTy</a>;</div>
+<div class="line"><a name="l00312"></a><span class="lineno">  312</span>     <span class="keyword">typedef</span> MapTy::const_iterator temp_iterator;<span class="comment"></span></div>
+<div class="line"><a name="l00313"></a><span class="lineno">  313</span> <span class="comment">    /// Temporaries - Temporary lvalues materialized within this stack frame.</span></div>
+<div class="line"><a name="l00314"></a><span class="lineno">  314</span> <span class="comment"></span>    <a class="code" href="ParentMap_8cpp.html#a9678f6646317beaaf39f5b01eba500a4">MapTy</a> Temporaries;</div>
+<div class="line"><a name="l00315"></a><span class="lineno">  315</span> </div>
+<div class="line"><a name="l00316"></a><span class="lineno">  316</span>     CallStackFrame(EvalInfo &Info, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> CallLoc,</div>
+<div class="line"><a name="l00317"></a><span class="lineno">  317</span>                    <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *Callee, <span class="keyword">const</span> LValue *This,</div>
+<div class="line"><a name="l00318"></a><span class="lineno">  318</span>                    <a class="code" href="classclang_1_1APValue.html">APValue</a> *Arguments);</div>
+<div class="line"><a name="l00319"></a><span class="lineno">  319</span>     ~CallStackFrame();</div>
+<div class="line"><a name="l00320"></a><span class="lineno">  320</span> </div>
+<div class="line"><a name="l00321"></a><span class="lineno">  321</span>     <a class="code" href="classclang_1_1APValue.html">APValue</a> *getTemporary(<span class="keyword">const</span> <span class="keywordtype">void</span> *Key) {</div>
+<div class="line"><a name="l00322"></a><span class="lineno">  322</span>       MapTy::iterator I = Temporaries.find(Key);</div>
+<div class="line"><a name="l00323"></a><span class="lineno">  323</span>       <span class="keywordflow">return</span> I == Temporaries.end() ? 0 : &I->second;</div>
+<div class="line"><a name="l00324"></a><span class="lineno">  324</span>     }</div>
+<div class="line"><a name="l00325"></a><span class="lineno">  325</span>     <a class="code" href="classclang_1_1APValue.html">APValue</a> &createTemporary(<span class="keyword">const</span> <span class="keywordtype">void</span> *Key, <span class="keywordtype">bool</span> IsLifetimeExtended);</div>
+<div class="line"><a name="l00326"></a><span class="lineno">  326</span>   };</div>
+<div class="line"><a name="l00327"></a><span class="lineno">  327</span> <span class="comment"></span></div>
+<div class="line"><a name="l00328"></a><span class="lineno">  328</span> <span class="comment">  /// Temporarily override 'this'.</span></div>
+<div class="line"><a name="l00329"></a><span class="lineno">  329</span> <span class="comment"></span>  <span class="keyword">class </span>ThisOverrideRAII {</div>
+<div class="line"><a name="l00330"></a><span class="lineno">  330</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00331"></a><span class="lineno">  331</span>     ThisOverrideRAII(CallStackFrame &Frame, <span class="keyword">const</span> LValue *NewThis, <span class="keywordtype">bool</span> Enable)</div>
+<div class="line"><a name="l00332"></a><span class="lineno">  332</span>         : Frame(Frame), OldThis(Frame.This) {</div>
+<div class="line"><a name="l00333"></a><span class="lineno">  333</span>       <span class="keywordflow">if</span> (Enable)</div>
+<div class="line"><a name="l00334"></a><span class="lineno">  334</span>         Frame.This = NewThis;</div>
+<div class="line"><a name="l00335"></a><span class="lineno">  335</span>     }</div>
+<div class="line"><a name="l00336"></a><span class="lineno">  336</span>     ~ThisOverrideRAII() {</div>
+<div class="line"><a name="l00337"></a><span class="lineno">  337</span>       Frame.This = OldThis;</div>
+<div class="line"><a name="l00338"></a><span class="lineno">  338</span>     }</div>
+<div class="line"><a name="l00339"></a><span class="lineno">  339</span>   <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00340"></a><span class="lineno">  340</span>     CallStackFrame &Frame;</div>
+<div class="line"><a name="l00341"></a><span class="lineno">  341</span>     <span class="keyword">const</span> LValue *OldThis;</div>
+<div class="line"><a name="l00342"></a><span class="lineno">  342</span>   };</div>
+<div class="line"><a name="l00343"></a><span class="lineno">  343</span> <span class="comment"></span></div>
+<div class="line"><a name="l00344"></a><span class="lineno">  344</span> <span class="comment">  /// A partial diagnostic which we might know in advance that we are not going</span></div>
+<div class="line"><a name="l00345"></a><span class="lineno">  345</span> <span class="comment">  /// to emit.</span></div>
+<div class="line"><a name="l00346"></a><span class="lineno">  346</span> <span class="comment"></span>  <span class="keyword">class </span>OptionalDiagnostic {</div>
+<div class="line"><a name="l00347"></a><span class="lineno">  347</span>     <a class="code" href="classclang_1_1PartialDiagnostic.html">PartialDiagnostic</a> *<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>;</div>
+<div class="line"><a name="l00348"></a><span class="lineno">  348</span> </div>
+<div class="line"><a name="l00349"></a><span class="lineno">  349</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00350"></a><span class="lineno">  350</span>     <span class="keyword">explicit</span> OptionalDiagnostic(<a class="code" href="classclang_1_1PartialDiagnostic.html">PartialDiagnostic</a> *<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a> = 0) : <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>) {}</div>
+<div class="line"><a name="l00351"></a><span class="lineno">  351</span> </div>
+<div class="line"><a name="l00352"></a><span class="lineno">  352</span>     <span class="keyword">template</span><<span class="keyword">typename</span> T></div>
+<div class="line"><a name="l00353"></a><span class="lineno">  353</span>     OptionalDiagnostic &<a class="code" href="namespaceclang.html#a3659baf54775a3470c40eff824034e38">operator<<</a>(<span class="keyword">const</span> T &v) {</div>
+<div class="line"><a name="l00354"></a><span class="lineno">  354</span>       <span class="keywordflow">if</span> (<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>)</div>
+<div class="line"><a name="l00355"></a><span class="lineno">  355</span>         *<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a> << v;</div>
+<div class="line"><a name="l00356"></a><span class="lineno">  356</span>       <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00357"></a><span class="lineno">  357</span>     }</div>
+<div class="line"><a name="l00358"></a><span class="lineno">  358</span> </div>
+<div class="line"><a name="l00359"></a><span class="lineno">  359</span>     OptionalDiagnostic &<a class="code" href="namespaceclang.html#a3659baf54775a3470c40eff824034e38">operator<<</a>(<span class="keyword">const</span> APSInt &I) {</div>
+<div class="line"><a name="l00360"></a><span class="lineno">  360</span>       <span class="keywordflow">if</span> (<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>) {</div>
+<div class="line"><a name="l00361"></a><span class="lineno">  361</span>         <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<char, 32></a> Buffer;</div>
+<div class="line"><a name="l00362"></a><span class="lineno">  362</span>         I.toString(Buffer);</div>
+<div class="line"><a name="l00363"></a><span class="lineno">  363</span>         *<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a> << StringRef(Buffer.data(), Buffer.size());</div>
+<div class="line"><a name="l00364"></a><span class="lineno">  364</span>       }</div>
+<div class="line"><a name="l00365"></a><span class="lineno">  365</span>       <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00366"></a><span class="lineno">  366</span>     }</div>
+<div class="line"><a name="l00367"></a><span class="lineno">  367</span> </div>
+<div class="line"><a name="l00368"></a><span class="lineno">  368</span>     OptionalDiagnostic &<a class="code" href="namespaceclang.html#a3659baf54775a3470c40eff824034e38">operator<<</a>(<span class="keyword">const</span> APFloat &F) {</div>
+<div class="line"><a name="l00369"></a><span class="lineno">  369</span>       <span class="keywordflow">if</span> (<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>) {</div>
+<div class="line"><a name="l00370"></a><span class="lineno">  370</span>         <span class="comment">// FIXME: Force the precision of the source value down so we don't</span></div>
+<div class="line"><a name="l00371"></a><span class="lineno">  371</span>         <span class="comment">// print digits which are usually useless (we don't really care here if</span></div>
+<div class="line"><a name="l00372"></a><span class="lineno">  372</span>         <span class="comment">// we truncate a digit by accident in edge cases).  Ideally,</span></div>
+<div class="line"><a name="l00373"></a><span class="lineno">  373</span>         <span class="comment">// APFloat::toString would automatically print the shortest </span></div>
+<div class="line"><a name="l00374"></a><span class="lineno">  374</span>         <span class="comment">// representation which rounds to the correct value, but it's a bit</span></div>
+<div class="line"><a name="l00375"></a><span class="lineno">  375</span>         <span class="comment">// tricky to implement.</span></div>
+<div class="line"><a name="l00376"></a><span class="lineno">  376</span>         <span class="keywordtype">unsigned</span> precision =</div>
+<div class="line"><a name="l00377"></a><span class="lineno">  377</span>             llvm::APFloat::semanticsPrecision(F.getSemantics());</div>
+<div class="line"><a name="l00378"></a><span class="lineno">  378</span>         precision = (precision * 59 + 195) / 196;</div>
+<div class="line"><a name="l00379"></a><span class="lineno">  379</span>         <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<char, 32></a> Buffer;</div>
+<div class="line"><a name="l00380"></a><span class="lineno">  380</span>         F.toString(Buffer, precision);</div>
+<div class="line"><a name="l00381"></a><span class="lineno">  381</span>         *<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a> << StringRef(Buffer.data(), Buffer.size());</div>
+<div class="line"><a name="l00382"></a><span class="lineno">  382</span>       }</div>
+<div class="line"><a name="l00383"></a><span class="lineno">  383</span>       <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
+<div class="line"><a name="l00384"></a><span class="lineno">  384</span>     }</div>
+<div class="line"><a name="l00385"></a><span class="lineno">  385</span>   };</div>
+<div class="line"><a name="l00386"></a><span class="lineno">  386</span> <span class="comment"></span></div>
+<div class="line"><a name="l00387"></a><span class="lineno">  387</span> <span class="comment">  /// A cleanup, and a flag indicating whether it is lifetime-extended.</span></div>
+<div class="line"><a name="l00388"></a><span class="lineno">  388</span> <span class="comment"></span>  <span class="keyword">class </span>Cleanup {</div>
+<div class="line"><a name="l00389"></a><span class="lineno">  389</span>     llvm::PointerIntPair<APValue*, 1, bool> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l00390"></a><span class="lineno">  390</span> </div>
+<div class="line"><a name="l00391"></a><span class="lineno">  391</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00392"></a><span class="lineno">  392</span>     Cleanup(<a class="code" href="classclang_1_1APValue.html">APValue</a> *Val, <span class="keywordtype">bool</span> IsLifetimeExtended)</div>
+<div class="line"><a name="l00393"></a><span class="lineno">  393</span>         : Value(Val, IsLifetimeExtended) {}</div>
+<div class="line"><a name="l00394"></a><span class="lineno">  394</span> </div>
+<div class="line"><a name="l00395"></a><span class="lineno">  395</span>     <span class="keywordtype">bool</span> isLifetimeExtended()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Value.getInt(); }</div>
+<div class="line"><a name="l00396"></a><span class="lineno">  396</span>     <span class="keywordtype">void</span> endLifetime() {</div>
+<div class="line"><a name="l00397"></a><span class="lineno">  397</span>       *Value.getPointer() = <a class="code" href="classclang_1_1APValue.html">APValue</a>();</div>
+<div class="line"><a name="l00398"></a><span class="lineno">  398</span>     }</div>
+<div class="line"><a name="l00399"></a><span class="lineno">  399</span>   };</div>
+<div class="line"><a name="l00400"></a><span class="lineno">  400</span> <span class="comment"></span></div>
+<div class="line"><a name="l00401"></a><span class="lineno">  401</span> <span class="comment">  /// EvalInfo - This is a private struct used by the evaluator to capture</span></div>
+<div class="line"><a name="l00402"></a><span class="lineno">  402</span> <span class="comment">  /// information about a subexpression as it is folded.  It retains information</span></div>
+<div class="line"><a name="l00403"></a><span class="lineno">  403</span> <span class="comment">  /// about the AST context, but also maintains information about the folded</span></div>
+<div class="line"><a name="l00404"></a><span class="lineno">  404</span> <span class="comment">  /// expression.</span></div>
+<div class="line"><a name="l00405"></a><span class="lineno">  405</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00406"></a><span class="lineno">  406</span> <span class="comment">  /// If an expression could be evaluated, it is still possible it is not a C</span></div>
+<div class="line"><a name="l00407"></a><span class="lineno">  407</span> <span class="comment">  /// "integer constant expression" or constant expression.  If not, this struct</span></div>
+<div class="line"><a name="l00408"></a><span class="lineno">  408</span> <span class="comment">  /// captures information about how and why not.</span></div>
+<div class="line"><a name="l00409"></a><span class="lineno">  409</span> <span class="comment">  ///</span></div>
+<div class="line"><a name="l00410"></a><span class="lineno">  410</span> <span class="comment">  /// One bit of information passed *into* the request for constant folding</span></div>
+<div class="line"><a name="l00411"></a><span class="lineno">  411</span> <span class="comment">  /// indicates whether the subexpression is "evaluated" or not according to C</span></div>
+<div class="line"><a name="l00412"></a><span class="lineno">  412</span> <span class="comment">  /// rules.  For example, the RHS of (0 && foo()) is not evaluated.  We can</span></div>
+<div class="line"><a name="l00413"></a><span class="lineno">  413</span> <span class="comment">  /// evaluate the expression regardless of what the RHS is, but C only allows</span></div>
+<div class="line"><a name="l00414"></a><span class="lineno">  414</span> <span class="comment">  /// certain things in certain situations.</span></div>
+<div class="line"><a name="l00415"></a><span class="lineno">  415</span> <span class="comment"></span>  <span class="keyword">struct </span>EvalInfo {</div>
+<div class="line"><a name="l00416"></a><span class="lineno">  416</span>     <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx;</div>
+<div class="line"><a name="l00417"></a><span class="lineno">  417</span> <span class="comment"></span></div>
+<div class="line"><a name="l00418"></a><span class="lineno">  418</span> <span class="comment">    /// EvalStatus - Contains information about the evaluation.</span></div>
+<div class="line"><a name="l00419"></a><span class="lineno">  419</span> <span class="comment"></span>    <a class="code" href="structclang_1_1Expr_1_1EvalStatus.html" title="EvalStatus is a struct with detailed info about an evaluation in progress.">Expr::EvalStatus</a> &EvalStatus;</div>
+<div class="line"><a name="l00420"></a><span class="lineno">  420</span> <span class="comment"></span></div>
+<div class="line"><a name="l00421"></a><span class="lineno">  421</span> <span class="comment">    /// CurrentCall - The top of the constexpr call stack.</span></div>
+<div class="line"><a name="l00422"></a><span class="lineno">  422</span> <span class="comment"></span>    CallStackFrame *CurrentCall;</div>
+<div class="line"><a name="l00423"></a><span class="lineno">  423</span> <span class="comment"></span></div>
+<div class="line"><a name="l00424"></a><span class="lineno">  424</span> <span class="comment">    /// CallStackDepth - The number of calls in the call stack right now.</span></div>
+<div class="line"><a name="l00425"></a><span class="lineno">  425</span> <span class="comment"></span>    <span class="keywordtype">unsigned</span> CallStackDepth;</div>
+<div class="line"><a name="l00426"></a><span class="lineno">  426</span> <span class="comment"></span></div>
+<div class="line"><a name="l00427"></a><span class="lineno">  427</span> <span class="comment">    /// NextCallIndex - The next call index to assign.</span></div>
+<div class="line"><a name="l00428"></a><span class="lineno">  428</span> <span class="comment"></span>    <span class="keywordtype">unsigned</span> NextCallIndex;</div>
+<div class="line"><a name="l00429"></a><span class="lineno">  429</span> <span class="comment"></span></div>
+<div class="line"><a name="l00430"></a><span class="lineno">  430</span> <span class="comment">    /// StepsLeft - The remaining number of evaluation steps we're permitted</span></div>
+<div class="line"><a name="l00431"></a><span class="lineno">  431</span> <span class="comment">    /// to perform. This is essentially a limit for the number of statements</span></div>
+<div class="line"><a name="l00432"></a><span class="lineno">  432</span> <span class="comment">    /// we will evaluate.</span></div>
+<div class="line"><a name="l00433"></a><span class="lineno">  433</span> <span class="comment"></span>    <span class="keywordtype">unsigned</span> StepsLeft;</div>
+<div class="line"><a name="l00434"></a><span class="lineno">  434</span> <span class="comment"></span></div>
+<div class="line"><a name="l00435"></a><span class="lineno">  435</span> <span class="comment">    /// BottomFrame - The frame in which evaluation started. This must be</span></div>
+<div class="line"><a name="l00436"></a><span class="lineno">  436</span> <span class="comment">    /// initialized after CurrentCall and CallStackDepth.</span></div>
+<div class="line"><a name="l00437"></a><span class="lineno">  437</span> <span class="comment"></span>    CallStackFrame BottomFrame;</div>
+<div class="line"><a name="l00438"></a><span class="lineno">  438</span> <span class="comment"></span></div>
+<div class="line"><a name="l00439"></a><span class="lineno">  439</span> <span class="comment">    /// A stack of values whose lifetimes end at the end of some surrounding</span></div>
+<div class="line"><a name="l00440"></a><span class="lineno">  440</span> <span class="comment">    /// evaluation frame.</span></div>
+<div class="line"><a name="l00441"></a><span class="lineno">  441</span> <span class="comment"></span>    <a class="code" href="classllvm_1_1SmallVector.html">llvm::SmallVector<Cleanup, 16></a> CleanupStack;</div>
+<div class="line"><a name="l00442"></a><span class="lineno">  442</span> <span class="comment"></span></div>
+<div class="line"><a name="l00443"></a><span class="lineno">  443</span> <span class="comment">    /// EvaluatingDecl - This is the declaration whose initializer is being</span></div>
+<div class="line"><a name="l00444"></a><span class="lineno">  444</span> <span class="comment">    /// evaluated, if any.</span></div>
+<div class="line"><a name="l00445"></a><span class="lineno">  445</span> <span class="comment"></span>    <a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> EvaluatingDecl;</div>
+<div class="line"><a name="l00446"></a><span class="lineno">  446</span> <span class="comment"></span></div>
+<div class="line"><a name="l00447"></a><span class="lineno">  447</span> <span class="comment">    /// EvaluatingDeclValue - This is the value being constructed for the</span></div>
+<div class="line"><a name="l00448"></a><span class="lineno">  448</span> <span class="comment">    /// declaration whose initializer is being evaluated, if any.</span></div>
+<div class="line"><a name="l00449"></a><span class="lineno">  449</span> <span class="comment"></span>    <a class="code" href="classclang_1_1APValue.html">APValue</a> *EvaluatingDeclValue;</div>
+<div class="line"><a name="l00450"></a><span class="lineno">  450</span> <span class="comment"></span></div>
+<div class="line"><a name="l00451"></a><span class="lineno">  451</span> <span class="comment">    /// HasActiveDiagnostic - Was the previous diagnostic stored? If so, further</span></div>
+<div class="line"><a name="l00452"></a><span class="lineno">  452</span> <span class="comment">    /// notes attached to it will also be stored, otherwise they will not be.</span></div>
+<div class="line"><a name="l00453"></a><span class="lineno">  453</span> <span class="comment"></span>    <span class="keywordtype">bool</span> HasActiveDiagnostic;</div>
+<div class="line"><a name="l00454"></a><span class="lineno">  454</span> </div>
+<div class="line"><a name="l00455"></a><span class="lineno">  455</span>     <span class="keyword">enum</span> EvaluationMode {<span class="comment"></span></div>
+<div class="line"><a name="l00456"></a><span class="lineno">  456</span> <span class="comment">      /// Evaluate as a constant expression. Stop if we find that the expression</span></div>
+<div class="line"><a name="l00457"></a><span class="lineno">  457</span> <span class="comment">      /// is not a constant expression.</span></div>
+<div class="line"><a name="l00458"></a><span class="lineno">  458</span> <span class="comment"></span>      EM_ConstantExpression,</div>
+<div class="line"><a name="l00459"></a><span class="lineno">  459</span> <span class="comment"></span></div>
+<div class="line"><a name="l00460"></a><span class="lineno">  460</span> <span class="comment">      /// Evaluate as a potential constant expression. Keep going if we hit a</span></div>
+<div class="line"><a name="l00461"></a><span class="lineno">  461</span> <span class="comment">      /// construct that we can't evaluate yet (because we don't yet know the</span></div>
+<div class="line"><a name="l00462"></a><span class="lineno">  462</span> <span class="comment">      /// value of something) but stop if we hit something that could never be</span></div>
+<div class="line"><a name="l00463"></a><span class="lineno">  463</span> <span class="comment">      /// a constant expression.</span></div>
+<div class="line"><a name="l00464"></a><span class="lineno">  464</span> <span class="comment"></span>      EM_PotentialConstantExpression,</div>
+<div class="line"><a name="l00465"></a><span class="lineno">  465</span> <span class="comment"></span></div>
+<div class="line"><a name="l00466"></a><span class="lineno">  466</span> <span class="comment">      /// Fold the expression to a constant. Stop if we hit a side-effect that</span></div>
+<div class="line"><a name="l00467"></a><span class="lineno">  467</span> <span class="comment">      /// we can't model.</span></div>
+<div class="line"><a name="l00468"></a><span class="lineno">  468</span> <span class="comment"></span>      EM_ConstantFold,</div>
+<div class="line"><a name="l00469"></a><span class="lineno">  469</span> <span class="comment"></span></div>
+<div class="line"><a name="l00470"></a><span class="lineno">  470</span> <span class="comment">      /// Evaluate the expression looking for integer overflow and similar</span></div>
+<div class="line"><a name="l00471"></a><span class="lineno">  471</span> <span class="comment">      /// issues. Don't worry about side-effects, and try to visit all</span></div>
+<div class="line"><a name="l00472"></a><span class="lineno">  472</span> <span class="comment">      /// subexpressions.</span></div>
+<div class="line"><a name="l00473"></a><span class="lineno">  473</span> <span class="comment"></span>      EM_EvaluateForOverflow,</div>
+<div class="line"><a name="l00474"></a><span class="lineno">  474</span> <span class="comment"></span></div>
+<div class="line"><a name="l00475"></a><span class="lineno">  475</span> <span class="comment">      /// Evaluate in any way we know how. Don't worry about side-effects that</span></div>
+<div class="line"><a name="l00476"></a><span class="lineno">  476</span> <span class="comment">      /// can't be modeled.</span></div>
+<div class="line"><a name="l00477"></a><span class="lineno">  477</span> <span class="comment"></span>      EM_IgnoreSideEffects</div>
+<div class="line"><a name="l00478"></a><span class="lineno">  478</span>     } EvalMode;</div>
+<div class="line"><a name="l00479"></a><span class="lineno">  479</span> <span class="comment"></span></div>
+<div class="line"><a name="l00480"></a><span class="lineno">  480</span> <span class="comment">    /// Are we checking whether the expression is a potential constant</span></div>
+<div class="line"><a name="l00481"></a><span class="lineno">  481</span> <span class="comment">    /// expression?</span></div>
+<div class="line"><a name="l00482"></a><span class="lineno">  482</span> <span class="comment"></span>    <span class="keywordtype">bool</span> checkingPotentialConstantExpression()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00483"></a><span class="lineno">  483</span>       <span class="keywordflow">return</span> EvalMode == EM_PotentialConstantExpression;</div>
+<div class="line"><a name="l00484"></a><span class="lineno">  484</span>     }</div>
+<div class="line"><a name="l00485"></a><span class="lineno">  485</span> <span class="comment"></span></div>
+<div class="line"><a name="l00486"></a><span class="lineno">  486</span> <span class="comment">    /// Are we checking an expression for overflow?</span></div>
+<div class="line"><a name="l00487"></a><span class="lineno">  487</span> <span class="comment"></span>    <span class="comment">// FIXME: We should check for any kind of undefined or suspicious behavior</span></div>
+<div class="line"><a name="l00488"></a><span class="lineno">  488</span>     <span class="comment">// in such constructs, not just overflow.</span></div>
+<div class="line"><a name="l00489"></a><span class="lineno">  489</span>     <span class="keywordtype">bool</span> checkingForOverflow() { <span class="keywordflow">return</span> EvalMode == EM_EvaluateForOverflow; }</div>
+<div class="line"><a name="l00490"></a><span class="lineno">  490</span> </div>
+<div class="line"><a name="l00491"></a><span class="lineno">  491</span>     EvalInfo(<span class="keyword">const</span> <a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &C, <a class="code" href="structclang_1_1Expr_1_1EvalStatus.html" title="EvalStatus is a struct with detailed info about an evaluation in progress.">Expr::EvalStatus</a> &<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>, EvaluationMode Mode)</div>
+<div class="line"><a name="l00492"></a><span class="lineno">  492</span>       : Ctx(const_cast<<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a>&>(C)), EvalStatus(S), CurrentCall(0),</div>
+<div class="line"><a name="l00493"></a><span class="lineno">  493</span>         CallStackDepth(0), NextCallIndex(1),</div>
+<div class="line"><a name="l00494"></a><span class="lineno">  494</span>         StepsLeft(getLangOpts().ConstexprStepLimit),</div>
+<div class="line"><a name="l00495"></a><span class="lineno">  495</span>         BottomFrame(*this, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a>(), 0, 0, 0),</div>
+<div class="line"><a name="l00496"></a><span class="lineno">  496</span>         EvaluatingDecl((const <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*)0), EvaluatingDeclValue(0),</div>
+<div class="line"><a name="l00497"></a><span class="lineno">  497</span>         HasActiveDiagnostic(<a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>), EvalMode(Mode) {}</div>
+<div class="line"><a name="l00498"></a><span class="lineno">  498</span> </div>
+<div class="line"><a name="l00499"></a><span class="lineno">  499</span>     <span class="keywordtype">void</span> setEvaluatingDecl(<a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> Base, <a class="code" href="classclang_1_1APValue.html">APValue</a> &Value) {</div>
+<div class="line"><a name="l00500"></a><span class="lineno">  500</span>       EvaluatingDecl = Base;</div>
+<div class="line"><a name="l00501"></a><span class="lineno">  501</span>       EvaluatingDeclValue = &<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l00502"></a><span class="lineno">  502</span>     }</div>
+<div class="line"><a name="l00503"></a><span class="lineno">  503</span> </div>
+<div class="line"><a name="l00504"></a><span class="lineno">  504</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1LangOptions.html" title="Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...">LangOptions</a> &getLangOpts()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Ctx.<a class="code" href="classclang_1_1ASTContext.html#a3faa7b5a5e8d1637c53dea680acca0ff">getLangOpts</a>(); }</div>
+<div class="line"><a name="l00505"></a><span class="lineno">  505</span> </div>
+<div class="line"><a name="l00506"></a><span class="lineno">  506</span>     <span class="keywordtype">bool</span> CheckCallLimit(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc) {</div>
+<div class="line"><a name="l00507"></a><span class="lineno">  507</span>       <span class="comment">// Don't perform any constexpr calls (other than the call we're checking)</span></div>
+<div class="line"><a name="l00508"></a><span class="lineno">  508</span>       <span class="comment">// when checking a potential constant expression.</span></div>
+<div class="line"><a name="l00509"></a><span class="lineno">  509</span>       <span class="keywordflow">if</span> (checkingPotentialConstantExpression() && CallStackDepth > 1)</div>
+<div class="line"><a name="l00510"></a><span class="lineno">  510</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00511"></a><span class="lineno">  511</span>       <span class="keywordflow">if</span> (NextCallIndex == 0) {</div>
+<div class="line"><a name="l00512"></a><span class="lineno">  512</span>         <span class="comment">// NextCallIndex has wrapped around.</span></div>
+<div class="line"><a name="l00513"></a><span class="lineno">  513</span>         <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(Loc, diag::note_constexpr_call_limit_exceeded);</div>
+<div class="line"><a name="l00514"></a><span class="lineno">  514</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00515"></a><span class="lineno">  515</span>       }</div>
+<div class="line"><a name="l00516"></a><span class="lineno">  516</span>       <span class="keywordflow">if</span> (CallStackDepth <= getLangOpts().ConstexprCallDepth)</div>
+<div class="line"><a name="l00517"></a><span class="lineno">  517</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00518"></a><span class="lineno">  518</span>       <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(Loc, diag::note_constexpr_depth_limit_exceeded)</div>
+<div class="line"><a name="l00519"></a><span class="lineno">  519</span>         << getLangOpts().ConstexprCallDepth;</div>
+<div class="line"><a name="l00520"></a><span class="lineno">  520</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00521"></a><span class="lineno">  521</span>     }</div>
+<div class="line"><a name="l00522"></a><span class="lineno">  522</span> </div>
+<div class="line"><a name="l00523"></a><span class="lineno">  523</span>     CallStackFrame *getCallFrame(<span class="keywordtype">unsigned</span> CallIndex) {</div>
+<div class="line"><a name="l00524"></a><span class="lineno">  524</span>       assert(CallIndex && <span class="stringliteral">"no call index in getCallFrame"</span>);</div>
+<div class="line"><a name="l00525"></a><span class="lineno">  525</span>       <span class="comment">// We will eventually hit BottomFrame, which has Index 1, so Frame can't</span></div>
+<div class="line"><a name="l00526"></a><span class="lineno">  526</span>       <span class="comment">// be null in this loop.</span></div>
+<div class="line"><a name="l00527"></a><span class="lineno">  527</span>       CallStackFrame *Frame = CurrentCall;</div>
+<div class="line"><a name="l00528"></a><span class="lineno">  528</span>       <span class="keywordflow">while</span> (Frame->Index > CallIndex)</div>
+<div class="line"><a name="l00529"></a><span class="lineno">  529</span>         Frame = Frame->Caller;</div>
+<div class="line"><a name="l00530"></a><span class="lineno">  530</span>       <span class="keywordflow">return</span> (Frame->Index == CallIndex) ? Frame : 0;</div>
+<div class="line"><a name="l00531"></a><span class="lineno">  531</span>     }</div>
+<div class="line"><a name="l00532"></a><span class="lineno">  532</span> </div>
+<div class="line"><a name="l00533"></a><span class="lineno">  533</span>     <span class="keywordtype">bool</span> nextStep(<span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> *<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>) {</div>
+<div class="line"><a name="l00534"></a><span class="lineno">  534</span>       <span class="keywordflow">if</span> (!StepsLeft) {</div>
+<div class="line"><a name="l00535"></a><span class="lineno">  535</span>         <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(S-><a class="code" href="classclang_1_1Stmt.html#a0270d9cff7ed2b38acb39690b96586d2">getLocStart</a>(), diag::note_constexpr_step_limit_exceeded);</div>
+<div class="line"><a name="l00536"></a><span class="lineno">  536</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00537"></a><span class="lineno">  537</span>       }</div>
+<div class="line"><a name="l00538"></a><span class="lineno">  538</span>       --StepsLeft;</div>
+<div class="line"><a name="l00539"></a><span class="lineno">  539</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00540"></a><span class="lineno">  540</span>     }</div>
+<div class="line"><a name="l00541"></a><span class="lineno">  541</span> </div>
+<div class="line"><a name="l00542"></a><span class="lineno">  542</span>   <span class="keyword">private</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00543"></a><span class="lineno">  543</span> <span class="comment">    /// Add a diagnostic to the diagnostics list.</span></div>
+<div class="line"><a name="l00544"></a><span class="lineno">  544</span> <span class="comment"></span>    <a class="code" href="classclang_1_1PartialDiagnostic.html">PartialDiagnostic</a> &addDiag(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc, <a class="code" href="classunsigned.html">diag::kind</a> DiagId) {</div>
+<div class="line"><a name="l00545"></a><span class="lineno">  545</span>       <a class="code" href="classclang_1_1PartialDiagnostic.html">PartialDiagnostic</a> PD(DiagId, Ctx.<a class="code" href="classclang_1_1ASTContext.html#a140f43b991d78defc6b2cdbd51a222ea">getDiagAllocator</a>());</div>
+<div class="line"><a name="l00546"></a><span class="lineno">  546</span>       EvalStatus.Diag->push_back(std::make_pair(Loc, PD));</div>
+<div class="line"><a name="l00547"></a><span class="lineno">  547</span>       <span class="keywordflow">return</span> EvalStatus.Diag->back().second;</div>
+<div class="line"><a name="l00548"></a><span class="lineno">  548</span>     }</div>
+<div class="line"><a name="l00549"></a><span class="lineno">  549</span> <span class="comment"></span></div>
+<div class="line"><a name="l00550"></a><span class="lineno">  550</span> <span class="comment">    /// Add notes containing a call stack to the current point of evaluation.</span></div>
+<div class="line"><a name="l00551"></a><span class="lineno">  551</span> <span class="comment"></span>    <span class="keywordtype">void</span> addCallStack(<span class="keywordtype">unsigned</span> Limit);</div>
+<div class="line"><a name="l00552"></a><span class="lineno">  552</span> </div>
+<div class="line"><a name="l00553"></a><span class="lineno">  553</span>   <span class="keyword">public</span>:<span class="comment"></span></div>
+<div class="line"><a name="l00554"></a><span class="lineno">  554</span> <span class="comment">    /// Diagnose that the evaluation cannot be folded.</span></div>
+<div class="line"><a name="l00555"></a><span class="lineno">  555</span> <span class="comment"></span>    OptionalDiagnostic <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc, <a class="code" href="classunsigned.html">diag::kind</a> DiagId</div>
+<div class="line"><a name="l00556"></a><span class="lineno">  556</span>                               = diag::note_invalid_subexpr_in_const_expr,</div>
+<div class="line"><a name="l00557"></a><span class="lineno">  557</span>                             <span class="keywordtype">unsigned</span> ExtraNotes = 0) {</div>
+<div class="line"><a name="l00558"></a><span class="lineno">  558</span>       <span class="keywordflow">if</span> (EvalStatus.Diag) {</div>
+<div class="line"><a name="l00559"></a><span class="lineno">  559</span>         <span class="comment">// If we have a prior diagnostic, it will be noting that the expression</span></div>
+<div class="line"><a name="l00560"></a><span class="lineno">  560</span>         <span class="comment">// isn't a constant expression. This diagnostic is more important,</span></div>
+<div class="line"><a name="l00561"></a><span class="lineno">  561</span>         <span class="comment">// unless we require this evaluation to produce a constant expression.</span></div>
+<div class="line"><a name="l00562"></a><span class="lineno">  562</span>         <span class="comment">//</span></div>
+<div class="line"><a name="l00563"></a><span class="lineno">  563</span>         <span class="comment">// FIXME: We might want to show both diagnostics to the user in</span></div>
+<div class="line"><a name="l00564"></a><span class="lineno">  564</span>         <span class="comment">// EM_ConstantFold mode.</span></div>
+<div class="line"><a name="l00565"></a><span class="lineno">  565</span>         <span class="keywordflow">if</span> (!EvalStatus.Diag->empty()) {</div>
+<div class="line"><a name="l00566"></a><span class="lineno">  566</span>           <span class="keywordflow">switch</span> (EvalMode) {</div>
+<div class="line"><a name="l00567"></a><span class="lineno">  567</span>           <span class="keywordflow">case</span> EM_ConstantFold:</div>
+<div class="line"><a name="l00568"></a><span class="lineno">  568</span>           <span class="keywordflow">case</span> EM_IgnoreSideEffects:</div>
+<div class="line"><a name="l00569"></a><span class="lineno">  569</span>           <span class="keywordflow">case</span> EM_EvaluateForOverflow:</div>
+<div class="line"><a name="l00570"></a><span class="lineno">  570</span>             <span class="keywordflow">if</span> (!EvalStatus.HasSideEffects)</div>
+<div class="line"><a name="l00571"></a><span class="lineno">  571</span>               <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l00572"></a><span class="lineno">  572</span>             <span class="comment">// We've had side-effects; we want the diagnostic from them, not</span></div>
+<div class="line"><a name="l00573"></a><span class="lineno">  573</span>             <span class="comment">// some later problem.</span></div>
+<div class="line"><a name="l00574"></a><span class="lineno">  574</span>           <span class="keywordflow">case</span> EM_ConstantExpression:</div>
+<div class="line"><a name="l00575"></a><span class="lineno">  575</span>           <span class="keywordflow">case</span> EM_PotentialConstantExpression:</div>
+<div class="line"><a name="l00576"></a><span class="lineno">  576</span>             HasActiveDiagnostic = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00577"></a><span class="lineno">  577</span>             <span class="keywordflow">return</span> OptionalDiagnostic();</div>
+<div class="line"><a name="l00578"></a><span class="lineno">  578</span>           }</div>
+<div class="line"><a name="l00579"></a><span class="lineno">  579</span>         }</div>
+<div class="line"><a name="l00580"></a><span class="lineno">  580</span> </div>
+<div class="line"><a name="l00581"></a><span class="lineno">  581</span>         <span class="keywordtype">unsigned</span> CallStackNotes = CallStackDepth - 1;</div>
+<div class="line"><a name="l00582"></a><span class="lineno">  582</span>         <span class="keywordtype">unsigned</span> Limit = Ctx.<a class="code" href="classclang_1_1ASTContext.html#a9038dcc99a0eb802f7d2686b5a9de271">getDiagnostics</a>().<a class="code" href="classclang_1_1DiagnosticsEngine.html#a37670826f95ed8ced552c1854d647f48" title="Retrieve the maximum number of constexpr evaluation notes to emit along with a given diagnostic...">getConstexprBacktraceLimit</a>();</div>
+<div class="line"><a name="l00583"></a><span class="lineno">  583</span>         <span class="keywordflow">if</span> (Limit)</div>
+<div class="line"><a name="l00584"></a><span class="lineno">  584</span>           CallStackNotes = std::min(CallStackNotes, Limit + 1);</div>
+<div class="line"><a name="l00585"></a><span class="lineno">  585</span>         <span class="keywordflow">if</span> (checkingPotentialConstantExpression())</div>
+<div class="line"><a name="l00586"></a><span class="lineno">  586</span>           CallStackNotes = 0;</div>
+<div class="line"><a name="l00587"></a><span class="lineno">  587</span> </div>
+<div class="line"><a name="l00588"></a><span class="lineno">  588</span>         HasActiveDiagnostic = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00589"></a><span class="lineno">  589</span>         EvalStatus.Diag->clear();</div>
+<div class="line"><a name="l00590"></a><span class="lineno">  590</span>         EvalStatus.Diag->reserve(1 + ExtraNotes + CallStackNotes);</div>
+<div class="line"><a name="l00591"></a><span class="lineno">  591</span>         addDiag(Loc, DiagId);</div>
+<div class="line"><a name="l00592"></a><span class="lineno">  592</span>         <span class="keywordflow">if</span> (!checkingPotentialConstantExpression())</div>
+<div class="line"><a name="l00593"></a><span class="lineno">  593</span>           addCallStack(Limit);</div>
+<div class="line"><a name="l00594"></a><span class="lineno">  594</span>         <span class="keywordflow">return</span> OptionalDiagnostic(&(*EvalStatus.Diag)[0].second);</div>
+<div class="line"><a name="l00595"></a><span class="lineno">  595</span>       }</div>
+<div class="line"><a name="l00596"></a><span class="lineno">  596</span>       HasActiveDiagnostic = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00597"></a><span class="lineno">  597</span>       <span class="keywordflow">return</span> OptionalDiagnostic();</div>
+<div class="line"><a name="l00598"></a><span class="lineno">  598</span>     }</div>
+<div class="line"><a name="l00599"></a><span class="lineno">  599</span> </div>
+<div class="line"><a name="l00600"></a><span class="lineno">  600</span>     OptionalDiagnostic <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <a class="code" href="classunsigned.html">diag::kind</a> DiagId</div>
+<div class="line"><a name="l00601"></a><span class="lineno">  601</span>                               = diag::note_invalid_subexpr_in_const_expr,</div>
+<div class="line"><a name="l00602"></a><span class="lineno">  602</span>                             <span class="keywordtype">unsigned</span> ExtraNotes = 0) {</div>
+<div class="line"><a name="l00603"></a><span class="lineno">  603</span>       <span class="keywordflow">if</span> (EvalStatus.Diag)</div>
+<div class="line"><a name="l00604"></a><span class="lineno">  604</span>         <span class="keywordflow">return</span> <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(E-><a class="code" href="classclang_1_1Expr.html#ab4fa508722ecc1546ad73cb31b0dc06c">getExprLoc</a>(), DiagId, ExtraNotes);</div>
+<div class="line"><a name="l00605"></a><span class="lineno">  605</span>       HasActiveDiagnostic = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00606"></a><span class="lineno">  606</span>       <span class="keywordflow">return</span> OptionalDiagnostic();</div>
+<div class="line"><a name="l00607"></a><span class="lineno">  607</span>     }</div>
+<div class="line"><a name="l00608"></a><span class="lineno">  608</span> <span class="comment"></span></div>
+<div class="line"><a name="l00609"></a><span class="lineno">  609</span> <span class="comment">    /// Diagnose that the evaluation does not produce a C++11 core constant</span></div>
+<div class="line"><a name="l00610"></a><span class="lineno">  610</span> <span class="comment">    /// expression.</span></div>
+<div class="line"><a name="l00611"></a><span class="lineno">  611</span> <span class="comment">    ///</span></div>
+<div class="line"><a name="l00612"></a><span class="lineno">  612</span> <span class="comment">    /// FIXME: Stop evaluating if we're in EM_ConstantExpression or</span></div>
+<div class="line"><a name="l00613"></a><span class="lineno">  613</span> <span class="comment">    /// EM_PotentialConstantExpression mode and we produce one of these.</span></div>
+<div class="line"><a name="l00614"></a><span class="lineno">  614</span> <span class="comment"></span>    <span class="keyword">template</span><<span class="keyword">typename</span> LocArg></div>
+<div class="line"><a name="l00615"></a><span class="lineno">  615</span>     OptionalDiagnostic CCEDiag(LocArg Loc, <a class="code" href="classunsigned.html">diag::kind</a> DiagId</div>
+<div class="line"><a name="l00616"></a><span class="lineno">  616</span>                                  = diag::note_invalid_subexpr_in_const_expr,</div>
+<div class="line"><a name="l00617"></a><span class="lineno">  617</span>                                <span class="keywordtype">unsigned</span> ExtraNotes = 0) {</div>
+<div class="line"><a name="l00618"></a><span class="lineno">  618</span>       <span class="comment">// Don't override a previous diagnostic. Don't bother collecting</span></div>
+<div class="line"><a name="l00619"></a><span class="lineno">  619</span>       <span class="comment">// diagnostics if we're evaluating for overflow.</span></div>
+<div class="line"><a name="l00620"></a><span class="lineno">  620</span>       <span class="keywordflow">if</span> (!EvalStatus.Diag || !EvalStatus.Diag->empty()) {</div>
+<div class="line"><a name="l00621"></a><span class="lineno">  621</span>         HasActiveDiagnostic = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00622"></a><span class="lineno">  622</span>         <span class="keywordflow">return</span> OptionalDiagnostic();</div>
+<div class="line"><a name="l00623"></a><span class="lineno">  623</span>       }</div>
+<div class="line"><a name="l00624"></a><span class="lineno">  624</span>       <span class="keywordflow">return</span> <a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>(Loc, DiagId, ExtraNotes);</div>
+<div class="line"><a name="l00625"></a><span class="lineno">  625</span>     }</div>
+<div class="line"><a name="l00626"></a><span class="lineno">  626</span> <span class="comment"></span></div>
+<div class="line"><a name="l00627"></a><span class="lineno">  627</span> <span class="comment">    /// Add a note to a prior diagnostic.</span></div>
+<div class="line"><a name="l00628"></a><span class="lineno">  628</span> <span class="comment"></span>    OptionalDiagnostic Note(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc, <a class="code" href="classunsigned.html">diag::kind</a> DiagId) {</div>
+<div class="line"><a name="l00629"></a><span class="lineno">  629</span>       <span class="keywordflow">if</span> (!HasActiveDiagnostic)</div>
+<div class="line"><a name="l00630"></a><span class="lineno">  630</span>         <span class="keywordflow">return</span> OptionalDiagnostic();</div>
+<div class="line"><a name="l00631"></a><span class="lineno">  631</span>       <span class="keywordflow">return</span> OptionalDiagnostic(&addDiag(Loc, DiagId));</div>
+<div class="line"><a name="l00632"></a><span class="lineno">  632</span>     }</div>
+<div class="line"><a name="l00633"></a><span class="lineno">  633</span> <span class="comment"></span></div>
+<div class="line"><a name="l00634"></a><span class="lineno">  634</span> <span class="comment">    /// Add a stack of notes to a prior diagnostic.</span></div>
+<div class="line"><a name="l00635"></a><span class="lineno">  635</span> <span class="comment"></span>    <span class="keywordtype">void</span> addNotes(<a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<PartialDiagnosticAt></a> Diags) {</div>
+<div class="line"><a name="l00636"></a><span class="lineno">  636</span>       <span class="keywordflow">if</span> (HasActiveDiagnostic) {</div>
+<div class="line"><a name="l00637"></a><span class="lineno">  637</span>         EvalStatus.Diag->insert(EvalStatus.Diag->end(),</div>
+<div class="line"><a name="l00638"></a><span class="lineno">  638</span>                                 Diags.begin(), Diags.end());</div>
+<div class="line"><a name="l00639"></a><span class="lineno">  639</span>       }</div>
+<div class="line"><a name="l00640"></a><span class="lineno">  640</span>     }</div>
+<div class="line"><a name="l00641"></a><span class="lineno">  641</span> <span class="comment"></span></div>
+<div class="line"><a name="l00642"></a><span class="lineno">  642</span> <span class="comment">    /// Should we continue evaluation after encountering a side-effect that we</span></div>
+<div class="line"><a name="l00643"></a><span class="lineno">  643</span> <span class="comment">    /// couldn't model?</span></div>
+<div class="line"><a name="l00644"></a><span class="lineno">  644</span> <span class="comment"></span>    <span class="keywordtype">bool</span> keepEvaluatingAfterSideEffect() {</div>
+<div class="line"><a name="l00645"></a><span class="lineno">  645</span>       <span class="keywordflow">switch</span> (EvalMode) {</div>
+<div class="line"><a name="l00646"></a><span class="lineno">  646</span>       <span class="keywordflow">case</span> EM_PotentialConstantExpression:</div>
+<div class="line"><a name="l00647"></a><span class="lineno">  647</span>       <span class="keywordflow">case</span> EM_EvaluateForOverflow:</div>
+<div class="line"><a name="l00648"></a><span class="lineno">  648</span>       <span class="keywordflow">case</span> EM_IgnoreSideEffects:</div>
+<div class="line"><a name="l00649"></a><span class="lineno">  649</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00650"></a><span class="lineno">  650</span> </div>
+<div class="line"><a name="l00651"></a><span class="lineno">  651</span>       <span class="keywordflow">case</span> EM_ConstantExpression:</div>
+<div class="line"><a name="l00652"></a><span class="lineno">  652</span>       <span class="keywordflow">case</span> EM_ConstantFold:</div>
+<div class="line"><a name="l00653"></a><span class="lineno">  653</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00654"></a><span class="lineno">  654</span>       }</div>
+<div class="line"><a name="l00655"></a><span class="lineno">  655</span>       llvm_unreachable(<span class="stringliteral">"Missed EvalMode case"</span>);</div>
+<div class="line"><a name="l00656"></a><span class="lineno">  656</span>     }</div>
+<div class="line"><a name="l00657"></a><span class="lineno">  657</span> <span class="comment"></span></div>
+<div class="line"><a name="l00658"></a><span class="lineno">  658</span> <span class="comment">    /// Note that we have had a side-effect, and determine whether we should</span></div>
+<div class="line"><a name="l00659"></a><span class="lineno">  659</span> <span class="comment">    /// keep evaluating.</span></div>
+<div class="line"><a name="l00660"></a><span class="lineno">  660</span> <span class="comment"></span>    <span class="keywordtype">bool</span> noteSideEffect() {</div>
+<div class="line"><a name="l00661"></a><span class="lineno">  661</span>       EvalStatus.HasSideEffects = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00662"></a><span class="lineno">  662</span>       <span class="keywordflow">return</span> keepEvaluatingAfterSideEffect();</div>
+<div class="line"><a name="l00663"></a><span class="lineno">  663</span>     }</div>
+<div class="line"><a name="l00664"></a><span class="lineno">  664</span> <span class="comment"></span></div>
+<div class="line"><a name="l00665"></a><span class="lineno">  665</span> <span class="comment">    /// Should we continue evaluation as much as possible after encountering a</span></div>
+<div class="line"><a name="l00666"></a><span class="lineno">  666</span> <span class="comment">    /// construct which can't be reduced to a value?</span></div>
+<div class="line"><a name="l00667"></a><span class="lineno">  667</span> <span class="comment"></span>    <span class="keywordtype">bool</span> keepEvaluatingAfterFailure() {</div>
+<div class="line"><a name="l00668"></a><span class="lineno">  668</span>       <span class="keywordflow">if</span> (!StepsLeft)</div>
+<div class="line"><a name="l00669"></a><span class="lineno">  669</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00670"></a><span class="lineno">  670</span> </div>
+<div class="line"><a name="l00671"></a><span class="lineno">  671</span>       <span class="keywordflow">switch</span> (EvalMode) {</div>
+<div class="line"><a name="l00672"></a><span class="lineno">  672</span>       <span class="keywordflow">case</span> EM_PotentialConstantExpression:</div>
+<div class="line"><a name="l00673"></a><span class="lineno">  673</span>       <span class="keywordflow">case</span> EM_EvaluateForOverflow:</div>
+<div class="line"><a name="l00674"></a><span class="lineno">  674</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00675"></a><span class="lineno">  675</span> </div>
+<div class="line"><a name="l00676"></a><span class="lineno">  676</span>       <span class="keywordflow">case</span> EM_ConstantExpression:</div>
+<div class="line"><a name="l00677"></a><span class="lineno">  677</span>       <span class="keywordflow">case</span> EM_ConstantFold:</div>
+<div class="line"><a name="l00678"></a><span class="lineno">  678</span>       <span class="keywordflow">case</span> EM_IgnoreSideEffects:</div>
+<div class="line"><a name="l00679"></a><span class="lineno">  679</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00680"></a><span class="lineno">  680</span>       }</div>
+<div class="line"><a name="l00681"></a><span class="lineno">  681</span>       llvm_unreachable(<span class="stringliteral">"Missed EvalMode case"</span>);</div>
+<div class="line"><a name="l00682"></a><span class="lineno">  682</span>     }</div>
+<div class="line"><a name="l00683"></a><span class="lineno">  683</span>   };</div>
+<div class="line"><a name="l00684"></a><span class="lineno">  684</span> <span class="comment"></span></div>
+<div class="line"><a name="l00685"></a><span class="lineno">  685</span> <span class="comment">  /// Object used to treat all foldable expressions as constant expressions.</span></div>
+<div class="line"><a name="l00686"></a><span class="lineno">  686</span> <span class="comment"></span>  <span class="keyword">struct </span>FoldConstant {</div>
+<div class="line"><a name="l00687"></a><span class="lineno">  687</span>     EvalInfo &Info;</div>
+<div class="line"><a name="l00688"></a><span class="lineno">  688</span>     <span class="keywordtype">bool</span> Enabled;</div>
+<div class="line"><a name="l00689"></a><span class="lineno">  689</span>     <span class="keywordtype">bool</span> HadNoPriorDiags;</div>
+<div class="line"><a name="l00690"></a><span class="lineno">  690</span>     EvalInfo::EvaluationMode OldMode;</div>
+<div class="line"><a name="l00691"></a><span class="lineno">  691</span> </div>
+<div class="line"><a name="l00692"></a><span class="lineno">  692</span>     <span class="keyword">explicit</span> FoldConstant(EvalInfo &Info, <span class="keywordtype">bool</span> Enabled)</div>
+<div class="line"><a name="l00693"></a><span class="lineno">  693</span>       : Info(Info),</div>
+<div class="line"><a name="l00694"></a><span class="lineno">  694</span>         Enabled(Enabled),</div>
+<div class="line"><a name="l00695"></a><span class="lineno">  695</span>         HadNoPriorDiags(Info.EvalStatus.<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a> &&</div>
+<div class="line"><a name="l00696"></a><span class="lineno">  696</span>                         Info.EvalStatus.<a class="code" href="LiteralSupport_8cpp.html#a5f4a4a29292c4a1697226abf1d22b9dd" title="Produce a diagnostic highlighting some portion of a literal.">Diag</a>->empty() &&</div>
+<div class="line"><a name="l00697"></a><span class="lineno">  697</span>                         !Info.EvalStatus.HasSideEffects),</div>
+<div class="line"><a name="l00698"></a><span class="lineno">  698</span>         OldMode(Info.EvalMode) {</div>
+<div class="line"><a name="l00699"></a><span class="lineno">  699</span>       <span class="keywordflow">if</span> (Enabled && Info.EvalMode == EvalInfo::EM_ConstantExpression)</div>
+<div class="line"><a name="l00700"></a><span class="lineno">  700</span>         Info.EvalMode = EvalInfo::EM_ConstantFold;</div>
+<div class="line"><a name="l00701"></a><span class="lineno">  701</span>     }</div>
+<div class="line"><a name="l00702"></a><span class="lineno">  702</span>     <span class="keywordtype">void</span> keepDiagnostics() { Enabled = <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l00703"></a><span class="lineno">  703</span>     ~FoldConstant() {</div>
+<div class="line"><a name="l00704"></a><span class="lineno">  704</span>       <span class="keywordflow">if</span> (Enabled && HadNoPriorDiags && !Info.EvalStatus.Diag->empty() &&</div>
+<div class="line"><a name="l00705"></a><span class="lineno">  705</span>           !Info.EvalStatus.HasSideEffects)</div>
+<div class="line"><a name="l00706"></a><span class="lineno">  706</span>         Info.EvalStatus.Diag->clear();</div>
+<div class="line"><a name="l00707"></a><span class="lineno">  707</span>       Info.EvalMode = OldMode;</div>
+<div class="line"><a name="l00708"></a><span class="lineno">  708</span>     }</div>
+<div class="line"><a name="l00709"></a><span class="lineno">  709</span>   };</div>
+<div class="line"><a name="l00710"></a><span class="lineno">  710</span> <span class="comment"></span></div>
+<div class="line"><a name="l00711"></a><span class="lineno">  711</span> <span class="comment">  /// RAII object used to suppress diagnostics and side-effects from a</span></div>
+<div class="line"><a name="l00712"></a><span class="lineno">  712</span> <span class="comment">  /// speculative evaluation.</span></div>
+<div class="line"><a name="l00713"></a><span class="lineno">  713</span> <span class="comment"></span>  <span class="keyword">class </span>SpeculativeEvaluationRAII {</div>
+<div class="line"><a name="l00714"></a><span class="lineno">  714</span>     EvalInfo &Info;</div>
+<div class="line"><a name="l00715"></a><span class="lineno">  715</span>     <a class="code" href="structclang_1_1Expr_1_1EvalStatus.html" title="EvalStatus is a struct with detailed info about an evaluation in progress.">Expr::EvalStatus</a> Old;</div>
+<div class="line"><a name="l00716"></a><span class="lineno">  716</span> </div>
+<div class="line"><a name="l00717"></a><span class="lineno">  717</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00718"></a><span class="lineno">  718</span>     SpeculativeEvaluationRAII(EvalInfo &Info,</div>
+<div class="line"><a name="l00719"></a><span class="lineno">  719</span>                               <a class="code" href="classllvm_1_1SmallVectorImpl.html">SmallVectorImpl<PartialDiagnosticAt></a> *NewDiag = 0)</div>
+<div class="line"><a name="l00720"></a><span class="lineno">  720</span>       : Info(Info), Old(Info.EvalStatus) {</div>
+<div class="line"><a name="l00721"></a><span class="lineno">  721</span>       Info.EvalStatus.Diag = NewDiag;</div>
+<div class="line"><a name="l00722"></a><span class="lineno">  722</span>       <span class="comment">// If we're speculatively evaluating, we may have skipped over some</span></div>
+<div class="line"><a name="l00723"></a><span class="lineno">  723</span>       <span class="comment">// evaluations and missed out a side effect.</span></div>
+<div class="line"><a name="l00724"></a><span class="lineno">  724</span>       Info.EvalStatus.HasSideEffects = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00725"></a><span class="lineno">  725</span>     }</div>
+<div class="line"><a name="l00726"></a><span class="lineno">  726</span>     ~SpeculativeEvaluationRAII() {</div>
+<div class="line"><a name="l00727"></a><span class="lineno">  727</span>       Info.EvalStatus = Old;</div>
+<div class="line"><a name="l00728"></a><span class="lineno">  728</span>     }</div>
+<div class="line"><a name="l00729"></a><span class="lineno">  729</span>   };</div>
+<div class="line"><a name="l00730"></a><span class="lineno">  730</span> <span class="comment"></span></div>
+<div class="line"><a name="l00731"></a><span class="lineno">  731</span> <span class="comment">  /// RAII object wrapping a full-expression or block scope, and handling</span></div>
+<div class="line"><a name="l00732"></a><span class="lineno">  732</span> <span class="comment">  /// the ending of the lifetime of temporaries created within it.</span></div>
+<div class="line"><a name="l00733"></a><span class="lineno">  733</span> <span class="comment"></span>  <span class="keyword">template</span><<span class="keywordtype">bool</span> IsFullExpression></div>
+<div class="line"><a name="l00734"></a><span class="lineno">  734</span>   <span class="keyword">class </span>ScopeRAII {</div>
+<div class="line"><a name="l00735"></a><span class="lineno">  735</span>     EvalInfo &Info;</div>
+<div class="line"><a name="l00736"></a><span class="lineno">  736</span>     <span class="keywordtype">unsigned</span> OldStackSize;</div>
+<div class="line"><a name="l00737"></a><span class="lineno">  737</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00738"></a><span class="lineno">  738</span>     ScopeRAII(EvalInfo &Info)</div>
+<div class="line"><a name="l00739"></a><span class="lineno">  739</span>         : Info(Info), OldStackSize(Info.CleanupStack.size()) {}</div>
+<div class="line"><a name="l00740"></a><span class="lineno">  740</span>     ~ScopeRAII() {</div>
+<div class="line"><a name="l00741"></a><span class="lineno">  741</span>       <span class="comment">// Body moved to a static method to encourage the compiler to inline away</span></div>
+<div class="line"><a name="l00742"></a><span class="lineno">  742</span>       <span class="comment">// instances of this class.</span></div>
+<div class="line"><a name="l00743"></a><span class="lineno">  743</span>       cleanup(Info, OldStackSize);</div>
+<div class="line"><a name="l00744"></a><span class="lineno">  744</span>     }</div>
+<div class="line"><a name="l00745"></a><span class="lineno">  745</span>   <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00746"></a><span class="lineno">  746</span>     <span class="keyword">static</span> <span class="keywordtype">void</span> cleanup(EvalInfo &Info, <span class="keywordtype">unsigned</span> OldStackSize) {</div>
+<div class="line"><a name="l00747"></a><span class="lineno">  747</span>       <span class="keywordtype">unsigned</span> NewEnd = OldStackSize;</div>
+<div class="line"><a name="l00748"></a><span class="lineno">  748</span>       <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = OldStackSize, N = Info.CleanupStack.size();</div>
+<div class="line"><a name="l00749"></a><span class="lineno">  749</span>            I != N; ++I) {</div>
+<div class="line"><a name="l00750"></a><span class="lineno">  750</span>         <span class="keywordflow">if</span> (IsFullExpression && Info.CleanupStack[I].isLifetimeExtended()) {</div>
+<div class="line"><a name="l00751"></a><span class="lineno">  751</span>           <span class="comment">// Full-expression cleanup of a lifetime-extended temporary: nothing</span></div>
+<div class="line"><a name="l00752"></a><span class="lineno">  752</span>           <span class="comment">// to do, just move this cleanup to the right place in the stack.</span></div>
+<div class="line"><a name="l00753"></a><span class="lineno">  753</span>           std::swap(Info.CleanupStack[I], Info.CleanupStack[NewEnd]);</div>
+<div class="line"><a name="l00754"></a><span class="lineno">  754</span>           ++NewEnd;</div>
+<div class="line"><a name="l00755"></a><span class="lineno">  755</span>         } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l00756"></a><span class="lineno">  756</span>           <span class="comment">// End the lifetime of the object.</span></div>
+<div class="line"><a name="l00757"></a><span class="lineno">  757</span>           Info.CleanupStack[I].endLifetime();</div>
+<div class="line"><a name="l00758"></a><span class="lineno">  758</span>         }</div>
+<div class="line"><a name="l00759"></a><span class="lineno">  759</span>       }</div>
+<div class="line"><a name="l00760"></a><span class="lineno">  760</span>       Info.CleanupStack.erase(Info.CleanupStack.begin() + NewEnd,</div>
+<div class="line"><a name="l00761"></a><span class="lineno">  761</span>                               Info.CleanupStack.end());</div>
+<div class="line"><a name="l00762"></a><span class="lineno">  762</span>     }</div>
+<div class="line"><a name="l00763"></a><span class="lineno">  763</span>   };</div>
+<div class="line"><a name="l00764"></a><span class="lineno">  764</span>   <span class="keyword">typedef</span> ScopeRAII<false> BlockScopeRAII;</div>
+<div class="line"><a name="l00765"></a><span class="lineno">  765</span>   <span class="keyword">typedef</span> ScopeRAII<true> FullExpressionRAII;</div>
+<div class="line"><a name="l00766"></a><span class="lineno">  766</span> }</div>
+<div class="line"><a name="l00767"></a><span class="lineno">  767</span> </div>
+<div class="line"><a name="l00768"></a><span class="lineno">  768</span> <span class="keywordtype">bool</span> SubobjectDesignator::checkSubobject(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l00769"></a><span class="lineno">  769</span>                                          <a class="code" href="ExprConstant_8cpp.html#ae6d36dd58bbc18a8d2310c55a7777c63">CheckSubobjectKind</a> CSK) {</div>
+<div class="line"><a name="l00770"></a><span class="lineno">  770</span>   <span class="keywordflow">if</span> (Invalid)</div>
+<div class="line"><a name="l00771"></a><span class="lineno">  771</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00772"></a><span class="lineno">  772</span>   <span class="keywordflow">if</span> (isOnePastTheEnd()) {</div>
+<div class="line"><a name="l00773"></a><span class="lineno">  773</span>     Info.CCEDiag(E, diag::note_constexpr_past_end_subobject)</div>
+<div class="line"><a name="l00774"></a><span class="lineno">  774</span>       << CSK;</div>
+<div class="line"><a name="l00775"></a><span class="lineno">  775</span>     setInvalid();</div>
+<div class="line"><a name="l00776"></a><span class="lineno">  776</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00777"></a><span class="lineno">  777</span>   }</div>
+<div class="line"><a name="l00778"></a><span class="lineno">  778</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00779"></a><span class="lineno">  779</span> }</div>
+<div class="line"><a name="l00780"></a><span class="lineno">  780</span> </div>
+<div class="line"><a name="l00781"></a><span class="lineno">  781</span> <span class="keywordtype">void</span> SubobjectDesignator::diagnosePointerArithmetic(EvalInfo &Info,</div>
+<div class="line"><a name="l00782"></a><span class="lineno">  782</span>                                                     <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, uint64_t N) {</div>
+<div class="line"><a name="l00783"></a><span class="lineno">  783</span>   <span class="keywordflow">if</span> (MostDerivedPathLength == <a class="code" href="SemaOverload_8cpp.html#aada9fb11fc2f7b0dec4ef8195c16885e">Entries</a>.size() && MostDerivedArraySize)</div>
+<div class="line"><a name="l00784"></a><span class="lineno">  784</span>     Info.CCEDiag(E, diag::note_constexpr_array_index)</div>
+<div class="line"><a name="l00785"></a><span class="lineno">  785</span>       << <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(N) << <span class="comment">/*array*/</span> 0</div>
+<div class="line"><a name="l00786"></a><span class="lineno">  786</span>       << static_cast<unsigned>(MostDerivedArraySize);</div>
+<div class="line"><a name="l00787"></a><span class="lineno">  787</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00788"></a><span class="lineno">  788</span>     Info.CCEDiag(E, diag::note_constexpr_array_index)</div>
+<div class="line"><a name="l00789"></a><span class="lineno">  789</span>       << <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(N) << <span class="comment">/*non-array*/</span> 1;</div>
+<div class="line"><a name="l00790"></a><span class="lineno">  790</span>   setInvalid();</div>
+<div class="line"><a name="l00791"></a><span class="lineno">  791</span> }</div>
+<div class="line"><a name="l00792"></a><span class="lineno">  792</span> </div>
+<div class="line"><a name="l00793"></a><span class="lineno">  793</span> CallStackFrame::CallStackFrame(EvalInfo &Info, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> CallLoc,</div>
+<div class="line"><a name="l00794"></a><span class="lineno">  794</span>                                <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *Callee, <span class="keyword">const</span> LValue *This,</div>
+<div class="line"><a name="l00795"></a><span class="lineno">  795</span>                                <a class="code" href="classclang_1_1APValue.html">APValue</a> *Arguments)</div>
+<div class="line"><a name="l00796"></a><span class="lineno">  796</span>     : Info(Info), Caller(Info.CurrentCall), CallLoc(CallLoc), Callee(Callee),</div>
+<div class="line"><a name="l00797"></a><span class="lineno">  797</span>       Index(Info.NextCallIndex++), This(This), Arguments(Arguments) {</div>
+<div class="line"><a name="l00798"></a><span class="lineno">  798</span>   Info.CurrentCall = <span class="keyword">this</span>;</div>
+<div class="line"><a name="l00799"></a><span class="lineno">  799</span>   ++Info.CallStackDepth;</div>
+<div class="line"><a name="l00800"></a><span class="lineno">  800</span> }</div>
+<div class="line"><a name="l00801"></a><span class="lineno">  801</span> </div>
+<div class="line"><a name="l00802"></a><span class="lineno">  802</span> CallStackFrame::~CallStackFrame() {</div>
+<div class="line"><a name="l00803"></a><span class="lineno">  803</span>   assert(Info.CurrentCall == <span class="keyword">this</span> && <span class="stringliteral">"calls retired out of order"</span>);</div>
+<div class="line"><a name="l00804"></a><span class="lineno">  804</span>   --Info.CallStackDepth;</div>
+<div class="line"><a name="l00805"></a><span class="lineno">  805</span>   Info.CurrentCall = Caller;</div>
+<div class="line"><a name="l00806"></a><span class="lineno">  806</span> }</div>
+<div class="line"><a name="l00807"></a><span class="lineno">  807</span> </div>
+<div class="line"><a name="l00808"></a><span class="lineno">  808</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &CallStackFrame::createTemporary(<span class="keyword">const</span> <span class="keywordtype">void</span> *Key,</div>
+<div class="line"><a name="l00809"></a><span class="lineno">  809</span>                                          <span class="keywordtype">bool</span> IsLifetimeExtended) {</div>
+<div class="line"><a name="l00810"></a><span class="lineno">  810</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result = Temporaries[Key];</div>
+<div class="line"><a name="l00811"></a><span class="lineno">  811</span>   assert(Result.<a class="code" href="classclang_1_1APValue.html#a4717d55a23b4978d34a6f7c15b201336">isUninit</a>() && <span class="stringliteral">"temporary created multiple times"</span>);</div>
+<div class="line"><a name="l00812"></a><span class="lineno">  812</span>   Info.CleanupStack.push_back(Cleanup(&Result, IsLifetimeExtended));</div>
+<div class="line"><a name="l00813"></a><span class="lineno">  813</span>   <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l00814"></a><span class="lineno">  814</span> }</div>
+<div class="line"><a name="l00815"></a><span class="lineno">  815</span> </div>
+<div class="line"><a name="l00816"></a><span class="lineno">  816</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ExprConstant_8cpp.html#ae9ebefaea6c84e610610906c1a963570" title="Produce a string describing the given constexpr call.">describeCall</a>(CallStackFrame *Frame, raw_ostream &Out);</div>
+<div class="line"><a name="l00817"></a><span class="lineno">  817</span> </div>
+<div class="line"><a name="l00818"></a><span class="lineno">  818</span> <span class="keywordtype">void</span> EvalInfo::addCallStack(<span class="keywordtype">unsigned</span> Limit) {</div>
+<div class="line"><a name="l00819"></a><span class="lineno">  819</span>   <span class="comment">// Determine which calls to skip, if any.</span></div>
+<div class="line"><a name="l00820"></a><span class="lineno">  820</span>   <span class="keywordtype">unsigned</span> ActiveCalls = CallStackDepth - 1;</div>
+<div class="line"><a name="l00821"></a><span class="lineno">  821</span>   <span class="keywordtype">unsigned</span> SkipStart = ActiveCalls, SkipEnd = SkipStart;</div>
+<div class="line"><a name="l00822"></a><span class="lineno">  822</span>   <span class="keywordflow">if</span> (Limit && Limit < ActiveCalls) {</div>
+<div class="line"><a name="l00823"></a><span class="lineno">  823</span>     SkipStart = Limit / 2 + Limit % 2;</div>
+<div class="line"><a name="l00824"></a><span class="lineno">  824</span>     SkipEnd = ActiveCalls - Limit / 2;</div>
+<div class="line"><a name="l00825"></a><span class="lineno">  825</span>   }</div>
+<div class="line"><a name="l00826"></a><span class="lineno">  826</span> </div>
+<div class="line"><a name="l00827"></a><span class="lineno">  827</span>   <span class="comment">// Walk the call stack and add the diagnostics.</span></div>
+<div class="line"><a name="l00828"></a><span class="lineno">  828</span>   <span class="keywordtype">unsigned</span> CallIdx = 0;</div>
+<div class="line"><a name="l00829"></a><span class="lineno">  829</span>   <span class="keywordflow">for</span> (CallStackFrame *Frame = CurrentCall; Frame != &BottomFrame;</div>
+<div class="line"><a name="l00830"></a><span class="lineno">  830</span>        Frame = Frame->Caller, ++CallIdx) {</div>
+<div class="line"><a name="l00831"></a><span class="lineno">  831</span>     <span class="comment">// Skip this call?</span></div>
+<div class="line"><a name="l00832"></a><span class="lineno">  832</span>     <span class="keywordflow">if</span> (CallIdx >= SkipStart && CallIdx < SkipEnd) {</div>
+<div class="line"><a name="l00833"></a><span class="lineno">  833</span>       <span class="keywordflow">if</span> (CallIdx == SkipStart) {</div>
+<div class="line"><a name="l00834"></a><span class="lineno">  834</span>         <span class="comment">// Note that we're skipping calls.</span></div>
+<div class="line"><a name="l00835"></a><span class="lineno">  835</span>         addDiag(Frame->CallLoc, diag::note_constexpr_calls_suppressed)</div>
+<div class="line"><a name="l00836"></a><span class="lineno">  836</span>           << <a class="code" href="classunsigned.html">unsigned</a>(ActiveCalls - Limit);</div>
+<div class="line"><a name="l00837"></a><span class="lineno">  837</span>       }</div>
+<div class="line"><a name="l00838"></a><span class="lineno">  838</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00839"></a><span class="lineno">  839</span>     }</div>
+<div class="line"><a name="l00840"></a><span class="lineno">  840</span> </div>
+<div class="line"><a name="l00841"></a><span class="lineno">  841</span>     <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<char, 128></a> Buffer;</div>
+<div class="line"><a name="l00842"></a><span class="lineno">  842</span>     llvm::raw_svector_ostream Out(Buffer);</div>
+<div class="line"><a name="l00843"></a><span class="lineno">  843</span>     <a class="code" href="ExprConstant_8cpp.html#ae9ebefaea6c84e610610906c1a963570" title="Produce a string describing the given constexpr call.">describeCall</a>(Frame, Out);</div>
+<div class="line"><a name="l00844"></a><span class="lineno">  844</span>     addDiag(Frame->CallLoc, diag::note_constexpr_call_here) << Out.str();</div>
+<div class="line"><a name="l00845"></a><span class="lineno">  845</span>   }</div>
+<div class="line"><a name="l00846"></a><span class="lineno">  846</span> }</div>
+<div class="line"><a name="l00847"></a><span class="lineno">  847</span> </div>
+<div class="line"><a name="l00848"></a><span class="lineno">  848</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l00849"></a><span class="lineno">  849</span>   <span class="keyword">struct </span>ComplexValue {</div>
+<div class="line"><a name="l00850"></a><span class="lineno">  850</span>   <span class="keyword">private</span>:</div>
+<div class="line"><a name="l00851"></a><span class="lineno">  851</span>     <span class="keywordtype">bool</span> IsInt;</div>
+<div class="line"><a name="l00852"></a><span class="lineno">  852</span> </div>
+<div class="line"><a name="l00853"></a><span class="lineno">  853</span>   <span class="keyword">public</span>:</div>
+<div class="line"><a name="l00854"></a><span class="lineno">  854</span>     APSInt IntReal, IntImag;</div>
+<div class="line"><a name="l00855"></a><span class="lineno">  855</span>     APFloat FloatReal, FloatImag;</div>
+<div class="line"><a name="l00856"></a><span class="lineno">  856</span> </div>
+<div class="line"><a name="l00857"></a><span class="lineno">  857</span>     ComplexValue() : FloatReal(APFloat::Bogus), FloatImag(APFloat::Bogus) {}</div>
+<div class="line"><a name="l00858"></a><span class="lineno">  858</span> </div>
+<div class="line"><a name="l00859"></a><span class="lineno">  859</span>     <span class="keywordtype">void</span> makeComplexFloat() { IsInt = <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l00860"></a><span class="lineno">  860</span>     <span class="keywordtype">bool</span> isComplexFloat()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !IsInt; }</div>
+<div class="line"><a name="l00861"></a><span class="lineno">  861</span>     APFloat &getComplexFloatReal() { <span class="keywordflow">return</span> FloatReal; }</div>
+<div class="line"><a name="l00862"></a><span class="lineno">  862</span>     APFloat &getComplexFloatImag() { <span class="keywordflow">return</span> FloatImag; }</div>
+<div class="line"><a name="l00863"></a><span class="lineno">  863</span> </div>
+<div class="line"><a name="l00864"></a><span class="lineno">  864</span>     <span class="keywordtype">void</span> makeComplexInt() { IsInt = <span class="keyword">true</span>; }</div>
+<div class="line"><a name="l00865"></a><span class="lineno">  865</span>     <span class="keywordtype">bool</span> isComplexInt()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> IsInt; }</div>
+<div class="line"><a name="l00866"></a><span class="lineno">  866</span>     APSInt &getComplexIntReal() { <span class="keywordflow">return</span> IntReal; }</div>
+<div class="line"><a name="l00867"></a><span class="lineno">  867</span>     APSInt &getComplexIntImag() { <span class="keywordflow">return</span> IntImag; }</div>
+<div class="line"><a name="l00868"></a><span class="lineno">  868</span> </div>
+<div class="line"><a name="l00869"></a><span class="lineno">  869</span>     <span class="keywordtype">void</span> moveInto(<a class="code" href="classclang_1_1APValue.html">APValue</a> &v)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00870"></a><span class="lineno">  870</span>       <span class="keywordflow">if</span> (isComplexFloat())</div>
+<div class="line"><a name="l00871"></a><span class="lineno">  871</span>         v = <a class="code" href="classclang_1_1APValue.html">APValue</a>(FloatReal, FloatImag);</div>
+<div class="line"><a name="l00872"></a><span class="lineno">  872</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00873"></a><span class="lineno">  873</span>         v = <a class="code" href="classclang_1_1APValue.html">APValue</a>(IntReal, IntImag);</div>
+<div class="line"><a name="l00874"></a><span class="lineno">  874</span>     }</div>
+<div class="line"><a name="l00875"></a><span class="lineno">  875</span>     <span class="keywordtype">void</span> setFrom(<span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &v) {</div>
+<div class="line"><a name="l00876"></a><span class="lineno">  876</span>       assert(v.<a class="code" href="classclang_1_1APValue.html#ae528b09bef3c0a0ee0a04b75f3585278">isComplexFloat</a>() || v.<a class="code" href="classclang_1_1APValue.html#a62db17663868ff1c6588e5ac7df43106">isComplexInt</a>());</div>
+<div class="line"><a name="l00877"></a><span class="lineno">  877</span>       <span class="keywordflow">if</span> (v.<a class="code" href="classclang_1_1APValue.html#ae528b09bef3c0a0ee0a04b75f3585278">isComplexFloat</a>()) {</div>
+<div class="line"><a name="l00878"></a><span class="lineno">  878</span>         makeComplexFloat();</div>
+<div class="line"><a name="l00879"></a><span class="lineno">  879</span>         FloatReal = v.<a class="code" href="classclang_1_1APValue.html#adc48962e4b1f10ede59a8b8e77988045">getComplexFloatReal</a>();</div>
+<div class="line"><a name="l00880"></a><span class="lineno">  880</span>         FloatImag = v.<a class="code" href="classclang_1_1APValue.html#aacb7fee7e82d960975225ac6dc729a45">getComplexFloatImag</a>();</div>
+<div class="line"><a name="l00881"></a><span class="lineno">  881</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l00882"></a><span class="lineno">  882</span>         makeComplexInt();</div>
+<div class="line"><a name="l00883"></a><span class="lineno">  883</span>         IntReal = v.<a class="code" href="classclang_1_1APValue.html#a66e83a13553ec7be07e881a723ed2555">getComplexIntReal</a>();</div>
+<div class="line"><a name="l00884"></a><span class="lineno">  884</span>         IntImag = v.<a class="code" href="classclang_1_1APValue.html#a96f59e7d6f7d451e0c2498f69a0551b9">getComplexIntImag</a>();</div>
+<div class="line"><a name="l00885"></a><span class="lineno">  885</span>       }</div>
+<div class="line"><a name="l00886"></a><span class="lineno">  886</span>     }</div>
+<div class="line"><a name="l00887"></a><span class="lineno">  887</span>   };</div>
+<div class="line"><a name="l00888"></a><span class="lineno">  888</span> </div>
+<div class="line"><a name="l00889"></a><span class="lineno">  889</span>   <span class="keyword">struct </span>LValue {</div>
+<div class="line"><a name="l00890"></a><span class="lineno">  890</span>     <a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> Base;</div>
+<div class="line"><a name="l00891"></a><span class="lineno">  891</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>;</div>
+<div class="line"><a name="l00892"></a><span class="lineno">  892</span>     <span class="keywordtype">unsigned</span> CallIndex;</div>
+<div class="line"><a name="l00893"></a><span class="lineno">  893</span>     SubobjectDesignator <a class="code" href="classclang_1_1Designator.html">Designator</a>;</div>
+<div class="line"><a name="l00894"></a><span class="lineno">  894</span> </div>
+<div class="line"><a name="l00895"></a><span class="lineno">  895</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> getLValueBase()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> Base; }</div>
+<div class="line"><a name="l00896"></a><span class="lineno">  896</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> &getLValueOffset() { <span class="keywordflow">return</span> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>; }</div>
+<div class="line"><a name="l00897"></a><span class="lineno">  897</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> &getLValueOffset()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>; }</div>
+<div class="line"><a name="l00898"></a><span class="lineno">  898</span>     <span class="keywordtype">unsigned</span> getLValueCallIndex()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> CallIndex; }</div>
+<div class="line"><a name="l00899"></a><span class="lineno">  899</span>     SubobjectDesignator &getLValueDesignator() { <span class="keywordflow">return</span> <a class="code" href="classclang_1_1Designator.html">Designator</a>; }</div>
+<div class="line"><a name="l00900"></a><span class="lineno">  900</span>     <span class="keyword">const</span> SubobjectDesignator &getLValueDesignator()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classclang_1_1Designator.html">Designator</a>;}</div>
+<div class="line"><a name="l00901"></a><span class="lineno">  901</span> </div>
+<div class="line"><a name="l00902"></a><span class="lineno">  902</span>     <span class="keywordtype">void</span> moveInto(<a class="code" href="classclang_1_1APValue.html">APValue</a> &V)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00903"></a><span class="lineno">  903</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1Designator.html">Designator</a>.Invalid)</div>
+<div class="line"><a name="l00904"></a><span class="lineno">  904</span>         V = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Base, <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>, <a class="code" href="structclang_1_1APValue_1_1NoLValuePath.html">APValue::NoLValuePath</a>(), CallIndex);</div>
+<div class="line"><a name="l00905"></a><span class="lineno">  905</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l00906"></a><span class="lineno">  906</span>         V = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Base, <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>, <a class="code" href="classclang_1_1Designator.html">Designator</a>.Entries,</div>
+<div class="line"><a name="l00907"></a><span class="lineno">  907</span>                     <a class="code" href="classclang_1_1Designator.html">Designator</a>.IsOnePastTheEnd, CallIndex);</div>
+<div class="line"><a name="l00908"></a><span class="lineno">  908</span>     }</div>
+<div class="line"><a name="l00909"></a><span class="lineno">  909</span>     <span class="keywordtype">void</span> setFrom(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx, <span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &V) {</div>
+<div class="line"><a name="l00910"></a><span class="lineno">  910</span>       assert(V.<a class="code" href="classclang_1_1APValue.html#a19d5f3448e338717c176293db4857fde">isLValue</a>());</div>
+<div class="line"><a name="l00911"></a><span class="lineno">  911</span>       Base = V.<a class="code" href="classclang_1_1APValue.html#a7b2bb5423a2a6d6465130045072c34b2">getLValueBase</a>();</div>
+<div class="line"><a name="l00912"></a><span class="lineno">  912</span>       <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a> = V.<a class="code" href="classclang_1_1APValue.html#a84aece408f0ab81305e7fd26bdc8376a">getLValueOffset</a>();</div>
+<div class="line"><a name="l00913"></a><span class="lineno">  913</span>       CallIndex = V.<a class="code" href="classclang_1_1APValue.html#aebcee7c7943f0d895cc9f204b28ec687">getLValueCallIndex</a>();</div>
+<div class="line"><a name="l00914"></a><span class="lineno">  914</span>       <a class="code" href="classclang_1_1Designator.html">Designator</a> = SubobjectDesignator(Ctx, V);</div>
+<div class="line"><a name="l00915"></a><span class="lineno">  915</span>     }</div>
+<div class="line"><a name="l00916"></a><span class="lineno">  916</span> </div>
+<div class="line"><a name="l00917"></a><span class="lineno">  917</span>     <span class="keywordtype">void</span> <span class="keyword">set</span>(<a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> B, <span class="keywordtype">unsigned</span> I = 0) {</div>
+<div class="line"><a name="l00918"></a><span class="lineno">  918</span>       Base = B;</div>
+<div class="line"><a name="l00919"></a><span class="lineno">  919</span>       <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a> = CharUnits::Zero();</div>
+<div class="line"><a name="l00920"></a><span class="lineno">  920</span>       CallIndex = I;</div>
+<div class="line"><a name="l00921"></a><span class="lineno">  921</span>       <a class="code" href="classclang_1_1Designator.html">Designator</a> = SubobjectDesignator(getType(B));</div>
+<div class="line"><a name="l00922"></a><span class="lineno">  922</span>     }</div>
+<div class="line"><a name="l00923"></a><span class="lineno">  923</span> </div>
+<div class="line"><a name="l00924"></a><span class="lineno">  924</span>     <span class="comment">// Check that this LValue is not based on a null pointer. If it is, produce</span></div>
+<div class="line"><a name="l00925"></a><span class="lineno">  925</span>     <span class="comment">// a diagnostic and mark the designator as invalid.</span></div>
+<div class="line"><a name="l00926"></a><span class="lineno">  926</span>     <span class="keywordtype">bool</span> checkNullPointer(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l00927"></a><span class="lineno">  927</span>                           <a class="code" href="ExprConstant_8cpp.html#ae6d36dd58bbc18a8d2310c55a7777c63">CheckSubobjectKind</a> CSK) {</div>
+<div class="line"><a name="l00928"></a><span class="lineno">  928</span>       <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1Designator.html">Designator</a>.Invalid)</div>
+<div class="line"><a name="l00929"></a><span class="lineno">  929</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00930"></a><span class="lineno">  930</span>       <span class="keywordflow">if</span> (!Base) {</div>
+<div class="line"><a name="l00931"></a><span class="lineno">  931</span>         Info.CCEDiag(E, diag::note_constexpr_null_subobject)</div>
+<div class="line"><a name="l00932"></a><span class="lineno">  932</span>           << CSK;</div>
+<div class="line"><a name="l00933"></a><span class="lineno">  933</span>         <a class="code" href="classclang_1_1Designator.html">Designator</a>.setInvalid();</div>
+<div class="line"><a name="l00934"></a><span class="lineno">  934</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00935"></a><span class="lineno">  935</span>       }</div>
+<div class="line"><a name="l00936"></a><span class="lineno">  936</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00937"></a><span class="lineno">  937</span>     }</div>
+<div class="line"><a name="l00938"></a><span class="lineno">  938</span> </div>
+<div class="line"><a name="l00939"></a><span class="lineno">  939</span>     <span class="comment">// Check this LValue refers to an object. If not, set the designator to be</span></div>
+<div class="line"><a name="l00940"></a><span class="lineno">  940</span>     <span class="comment">// invalid and emit a diagnostic.</span></div>
+<div class="line"><a name="l00941"></a><span class="lineno">  941</span>     <span class="keywordtype">bool</span> checkSubobject(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <a class="code" href="ExprConstant_8cpp.html#ae6d36dd58bbc18a8d2310c55a7777c63">CheckSubobjectKind</a> CSK) {</div>
+<div class="line"><a name="l00942"></a><span class="lineno">  942</span>       <span class="comment">// Outside C++11, do not build a designator referring to a subobject of</span></div>
+<div class="line"><a name="l00943"></a><span class="lineno">  943</span>       <span class="comment">// any object: we won't use such a designator for anything.</span></div>
+<div class="line"><a name="l00944"></a><span class="lineno">  944</span>       <span class="keywordflow">if</span> (!Info.getLangOpts().CPlusPlus11)</div>
+<div class="line"><a name="l00945"></a><span class="lineno">  945</span>         <a class="code" href="classclang_1_1Designator.html">Designator</a>.setInvalid();</div>
+<div class="line"><a name="l00946"></a><span class="lineno">  946</span>       <span class="keywordflow">return</span> checkNullPointer(Info, E, CSK) &&</div>
+<div class="line"><a name="l00947"></a><span class="lineno">  947</span>              <a class="code" href="classclang_1_1Designator.html">Designator</a>.checkSubobject(Info, E, CSK);</div>
+<div class="line"><a name="l00948"></a><span class="lineno">  948</span>     }</div>
+<div class="line"><a name="l00949"></a><span class="lineno">  949</span> </div>
+<div class="line"><a name="l00950"></a><span class="lineno">  950</span>     <span class="keywordtype">void</span> addDecl(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l00951"></a><span class="lineno">  951</span>                  <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D, <span class="keywordtype">bool</span> Virtual = <span class="keyword">false</span>) {</div>
+<div class="line"><a name="l00952"></a><span class="lineno">  952</span>       <span class="keywordflow">if</span> (checkSubobject(Info, E, isa<FieldDecl>(D) ? CSK_Field : CSK_Base))</div>
+<div class="line"><a name="l00953"></a><span class="lineno">  953</span>         <a class="code" href="classclang_1_1Designator.html">Designator</a>.addDeclUnchecked(D, Virtual);</div>
+<div class="line"><a name="l00954"></a><span class="lineno">  954</span>     }</div>
+<div class="line"><a name="l00955"></a><span class="lineno">  955</span>     <span class="keywordtype">void</span> addArray(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT) {</div>
+<div class="line"><a name="l00956"></a><span class="lineno">  956</span>       <span class="keywordflow">if</span> (checkSubobject(Info, E, CSK_ArrayToPointer))</div>
+<div class="line"><a name="l00957"></a><span class="lineno">  957</span>         <a class="code" href="classclang_1_1Designator.html">Designator</a>.addArrayUnchecked(CAT);</div>
+<div class="line"><a name="l00958"></a><span class="lineno">  958</span>     }</div>
+<div class="line"><a name="l00959"></a><span class="lineno">  959</span>     <span class="keywordtype">void</span> addComplex(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <a class="code" href="classclang_1_1QualType.html">QualType</a> EltTy, <span class="keywordtype">bool</span> Imag) {</div>
+<div class="line"><a name="l00960"></a><span class="lineno">  960</span>       <span class="keywordflow">if</span> (checkSubobject(Info, E, Imag ? CSK_Imag : CSK_Real))</div>
+<div class="line"><a name="l00961"></a><span class="lineno">  961</span>         <a class="code" href="classclang_1_1Designator.html">Designator</a>.addComplexUnchecked(EltTy, Imag);</div>
+<div class="line"><a name="l00962"></a><span class="lineno">  962</span>     }</div>
+<div class="line"><a name="l00963"></a><span class="lineno">  963</span>     <span class="keywordtype">void</span> adjustIndex(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, uint64_t N) {</div>
+<div class="line"><a name="l00964"></a><span class="lineno">  964</span>       <span class="keywordflow">if</span> (checkNullPointer(Info, E, CSK_ArrayIndex))</div>
+<div class="line"><a name="l00965"></a><span class="lineno">  965</span>         <a class="code" href="classclang_1_1Designator.html">Designator</a>.adjustIndex(Info, E, N);</div>
+<div class="line"><a name="l00966"></a><span class="lineno">  966</span>     }</div>
+<div class="line"><a name="l00967"></a><span class="lineno">  967</span>   };</div>
+<div class="line"><a name="l00968"></a><span class="lineno">  968</span> </div>
+<div class="line"><a name="l00969"></a><span class="lineno">  969</span>   <span class="keyword">struct </span>MemberPtr {</div>
+<div class="line"><a name="l00970"></a><span class="lineno">  970</span>     MemberPtr() {}</div>
+<div class="line"><a name="l00971"></a><span class="lineno">  971</span>     <span class="keyword">explicit</span> MemberPtr(<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *<a class="code" href="classclang_1_1Decl.html">Decl</a>) :</div>
+<div class="line"><a name="l00972"></a><span class="lineno">  972</span>       DeclAndIsDerivedMember(Decl, <a class="code" href="stdbool_8h.html#a65e9886d74aaee76545e83dd09011727">false</a>), Path() {}</div>
+<div class="line"><a name="l00973"></a><span class="lineno">  973</span> <span class="comment"></span></div>
+<div class="line"><a name="l00974"></a><span class="lineno">  974</span> <span class="comment">    /// The member or (direct or indirect) field referred to by this member</span></div>
+<div class="line"><a name="l00975"></a><span class="lineno">  975</span> <span class="comment">    /// pointer, or 0 if this is a null member pointer.</span></div>
+<div class="line"><a name="l00976"></a><span class="lineno">  976</span> <span class="comment"></span>    <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *getDecl()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00977"></a><span class="lineno">  977</span>       <span class="keywordflow">return</span> DeclAndIsDerivedMember.getPointer();</div>
+<div class="line"><a name="l00978"></a><span class="lineno">  978</span>     }<span class="comment"></span></div>
+<div class="line"><a name="l00979"></a><span class="lineno">  979</span> <span class="comment">    /// Is this actually a member of some type derived from the relevant class?</span></div>
+<div class="line"><a name="l00980"></a><span class="lineno">  980</span> <span class="comment"></span>    <span class="keywordtype">bool</span> isDerivedMember()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00981"></a><span class="lineno">  981</span>       <span class="keywordflow">return</span> DeclAndIsDerivedMember.getInt();</div>
+<div class="line"><a name="l00982"></a><span class="lineno">  982</span>     }<span class="comment"></span></div>
+<div class="line"><a name="l00983"></a><span class="lineno">  983</span> <span class="comment">    /// Get the class which the declaration actually lives in.</span></div>
+<div class="line"><a name="l00984"></a><span class="lineno">  984</span> <span class="comment"></span>    <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *getContainingRecord()<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00985"></a><span class="lineno">  985</span>       <span class="keywordflow">return</span> cast<CXXRecordDecl>(</div>
+<div class="line"><a name="l00986"></a><span class="lineno">  986</span>           DeclAndIsDerivedMember.getPointer()->getDeclContext());</div>
+<div class="line"><a name="l00987"></a><span class="lineno">  987</span>     }</div>
+<div class="line"><a name="l00988"></a><span class="lineno">  988</span> </div>
+<div class="line"><a name="l00989"></a><span class="lineno">  989</span>     <span class="keywordtype">void</span> moveInto(<a class="code" href="classclang_1_1APValue.html">APValue</a> &V)<span class="keyword"> const </span>{</div>
+<div class="line"><a name="l00990"></a><span class="lineno">  990</span>       V = <a class="code" href="classclang_1_1APValue.html">APValue</a>(getDecl(), isDerivedMember(), Path);</div>
+<div class="line"><a name="l00991"></a><span class="lineno">  991</span>     }</div>
+<div class="line"><a name="l00992"></a><span class="lineno">  992</span>     <span class="keywordtype">void</span> setFrom(<span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &V) {</div>
+<div class="line"><a name="l00993"></a><span class="lineno">  993</span>       assert(V.<a class="code" href="classclang_1_1APValue.html#a8dbba75a654d577c4999f08710c47d61">isMemberPointer</a>());</div>
+<div class="line"><a name="l00994"></a><span class="lineno">  994</span>       DeclAndIsDerivedMember.setPointer(V.<a class="code" href="classclang_1_1APValue.html#a09eb8447b018545715ce1eafd688d378">getMemberPointerDecl</a>());</div>
+<div class="line"><a name="l00995"></a><span class="lineno">  995</span>       DeclAndIsDerivedMember.setInt(V.<a class="code" href="classclang_1_1APValue.html#ad83ef1881b5eb09dc7f1201b5a513a3c">isMemberPointerToDerivedMember</a>());</div>
+<div class="line"><a name="l00996"></a><span class="lineno">  996</span>       Path.clear();</div>
+<div class="line"><a name="l00997"></a><span class="lineno">  997</span>       <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const CXXRecordDecl*></a> <a class="code" href="TokenAnnotator_8cpp.html#a0bf8bdaf8596b1161b6ce63c4232a1fb">P</a> = V.<a class="code" href="classclang_1_1APValue.html#af5c30ba9ddefb70de48788030446f9ee">getMemberPointerPath</a>();</div>
+<div class="line"><a name="l00998"></a><span class="lineno">  998</span>       Path.insert(Path.end(), P.begin(), P.end());</div>
+<div class="line"><a name="l00999"></a><span class="lineno">  999</span>     }</div>
+<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> <span class="comment"></span></div>
+<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> <span class="comment">    /// DeclAndIsDerivedMember - The member declaration, and a flag indicating</span></div>
+<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span> <span class="comment">    /// whether the member is a member of some class derived from the class type</span></div>
+<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> <span class="comment">    /// of the member pointer.</span></div>
+<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> <span class="comment"></span>    llvm::PointerIntPair<const ValueDecl*, 1, bool> DeclAndIsDerivedMember;<span class="comment"></span></div>
+<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> <span class="comment">    /// Path - The path of base/derived classes from the member declaration's</span></div>
+<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> <span class="comment">    /// class (exclusive) to the class type of the member pointer (inclusive).</span></div>
+<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span> <span class="comment"></span>    <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<const CXXRecordDecl*, 4></a> Path;</div>
+<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> <span class="comment"></span></div>
+<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> <span class="comment">    /// Perform a cast towards the class of the Decl (either up or down the</span></div>
+<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span> <span class="comment">    /// hierarchy).</span></div>
+<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span> <span class="comment"></span>    <span class="keywordtype">bool</span> castBack(<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Class) {</div>
+<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>       assert(!Path.empty());</div>
+<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Expected;</div>
+<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>       <span class="keywordflow">if</span> (Path.size() >= 2)</div>
+<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>         Expected = Path[Path.size() - 2];</div>
+<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>         Expected = getContainingRecord();</div>
+<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>       <span class="keywordflow">if</span> (Expected->getCanonicalDecl() != Class-><a class="code" href="classclang_1_1CXXRecordDecl.html#a38f531b4822da3071fe56cc210978afd" title="Retrieves the "canonical" declaration of the given declaration.">getCanonicalDecl</a>()) {</div>
+<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>         <span class="comment">// C++11 [expr.static.cast]p12: In a conversion from (D::*) to (B::*),</span></div>
+<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>         <span class="comment">// if B does not contain the original member and is not a base or</span></div>
+<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>         <span class="comment">// derived class of the class containing the original member, the result</span></div>
+<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>         <span class="comment">// of the cast is undefined.</span></div>
+<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>         <span class="comment">// C++11 [conv.mem]p2 does not cover this case for a cast from (B::*) to</span></div>
+<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>         <span class="comment">// (D::*). We consider that to be a language defect.</span></div>
+<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>       }</div>
+<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>       Path.pop_back();</div>
+<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>     }<span class="comment"></span></div>
+<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> <span class="comment">    /// Perform a base-to-derived member pointer cast.</span></div>
+<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> <span class="comment"></span>    <span class="keywordtype">bool</span> castToDerived(<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Derived) {</div>
+<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>       <span class="keywordflow">if</span> (!getDecl())</div>
+<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>       <span class="keywordflow">if</span> (!isDerivedMember()) {</div>
+<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>         Path.push_back(Derived);</div>
+<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>       }</div>
+<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>       <span class="keywordflow">if</span> (!castBack(Derived))</div>
+<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>       <span class="keywordflow">if</span> (Path.empty())</div>
+<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>         DeclAndIsDerivedMember.setInt(<span class="keyword">false</span>);</div>
+<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>     }<span class="comment"></span></div>
+<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="comment">    /// Perform a derived-to-base member pointer cast.</span></div>
+<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> <span class="comment"></span>    <span class="keywordtype">bool</span> castToBase(<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Base) {</div>
+<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>       <span class="keywordflow">if</span> (!getDecl())</div>
+<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>       <span class="keywordflow">if</span> (Path.empty())</div>
+<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>         DeclAndIsDerivedMember.setInt(<span class="keyword">true</span>);</div>
+<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>       <span class="keywordflow">if</span> (isDerivedMember()) {</div>
+<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>         Path.push_back(Base);</div>
+<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>         <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>       }</div>
+<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>       <span class="keywordflow">return</span> castBack(Base);</div>
+<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>     }</div>
+<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>   };</div>
+<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> <span class="comment"></span></div>
+<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> <span class="comment">  /// Compare two member pointers, which are assumed to be of the same type.</span></div>
+<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> <span class="comment"></span>  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceclang.html#a291d36360b70f878533d50fde94b1465">operator==</a>(<span class="keyword">const</span> MemberPtr &LHS, <span class="keyword">const</span> MemberPtr &RHS) {</div>
+<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>     <span class="keywordflow">if</span> (!LHS.getDecl() || !RHS.getDecl())</div>
+<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>       <span class="keywordflow">return</span> !LHS.getDecl() && !RHS.getDecl();</div>
+<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>     <span class="keywordflow">if</span> (LHS.getDecl()->getCanonicalDecl() != RHS.getDecl()->getCanonicalDecl())</div>
+<div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>     <span class="keywordflow">return</span> LHS.Path == RHS.Path;</div>
+<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>   }</div>
+<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span> }</div>
+<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span> </div>
+<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ae7dcbcdd6d581c905cc4eeb5fa79c86b">Evaluate</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Result, EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E);</div>
+<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#abce909fdfbd15b0aef03182b118a9445">EvaluateInPlace</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Result, EvalInfo &Info,</div>
+<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>                             <span class="keyword">const</span> LValue &This, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>                             <span class="keywordtype">bool</span> AllowNonLiteralTypes = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#af2c59086486ff9ee329c541e94072496" title="Evaluate an expression as an lvalue. This can be legitimately called on expressions which are not glv...">EvaluateLValue</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, LValue &Result, EvalInfo &Info);</div>
+<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ad6cb52c66467838af50f248b46b6ed42">EvaluatePointer</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, LValue &Result, EvalInfo &Info);</div>
+<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a03b4f6d01a4624cecbccf8078d2de75a">EvaluateMemberPointer</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, MemberPtr &Result,</div>
+<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>                                   EvalInfo &Info);</div>
+<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a4995c316e40fd6838441461f13369a5d" title="Evaluate an expression of record type as a temporary.">EvaluateTemporary</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, LValue &Result, EvalInfo &Info);</div>
+<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a7021d3c1598e2c99eb8cbeace33b92f3">EvaluateInteger</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, APSInt  &Result, EvalInfo &Info);</div>
+<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#af1452f89193673d91bfd98d5eac0fb50">EvaluateIntegerOrLValue</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result,</div>
+<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>                                     EvalInfo &Info);</div>
+<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a4f801a669da89fe8678c15e6646aa824">EvaluateFloat</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, APFloat &Result, EvalInfo &Info);</div>
+<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a2f231d27e1b989ed9029fa52c0cecebc">EvaluateComplex</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, ComplexValue &Res, EvalInfo &Info);</div>
+<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ac9c33e5e0a26bc804666330cc8778e30">EvaluateAtomic</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result, EvalInfo &Info);</div>
+<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> </div>
+<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> <span class="comment">// Misc utilities</span></div>
+<div class="line"><a name="l01086"></a><span class="lineno"> 1086</span> <span class="comment">//===----------------------------------------------------------------------===//</span></div>
+<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <span class="comment"></span></div>
+<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> <span class="comment">/// Produce a string describing the given constexpr call.</span></div>
+<div class="line"><a name="l01089"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ae9ebefaea6c84e610610906c1a963570"> 1089</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ExprConstant_8cpp.html#ae9ebefaea6c84e610610906c1a963570" title="Produce a string describing the given constexpr call.">describeCall</a>(CallStackFrame *Frame, raw_ostream &Out) {</div>
+<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>   <span class="keywordtype">unsigned</span> ArgIndex = 0;</div>
+<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>   <span class="keywordtype">bool</span> IsMemberCall = isa<CXXMethodDecl>(Frame->Callee) &&</div>
+<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>                       !isa<CXXConstructorDecl>(Frame->Callee) &&</div>
+<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>                       cast<CXXMethodDecl>(Frame->Callee)->isInstance();</div>
+<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span> </div>
+<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>   <span class="keywordflow">if</span> (!IsMemberCall)</div>
+<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>     Out << *Frame->Callee << <span class="charliteral">'('</span>;</div>
+<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> </div>
+<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>   <span class="keywordflow">if</span> (Frame->This && IsMemberCall) {</div>
+<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>     <a class="code" href="classclang_1_1APValue.html">APValue</a> Val;</div>
+<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>     Frame->This->moveInto(Val);</div>
+<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>     Val.<a class="code" href="classclang_1_1APValue.html#a7648d6429b20e25e6e7afa4c5f5bae7f">printPretty</a>(Out, Frame->Info.Ctx,</div>
+<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>                     Frame->This->Designator.MostDerivedType);</div>
+<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>     <span class="comment">// FIXME: Add parens around Val if needed.</span></div>
+<div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>     Out << <span class="stringliteral">"->"</span> << *Frame->Callee << <span class="charliteral">'('</span>;</div>
+<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>     IsMemberCall = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>   }</div>
+<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span> </div>
+<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1FunctionDecl.html#acd4759dcc88e4125a177456fb575bf12">FunctionDecl::param_const_iterator</a> I = Frame->Callee->param_begin(),</div>
+<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>        E = Frame->Callee->param_end(); I != E; ++I, ++ArgIndex) {</div>
+<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>     <span class="keywordflow">if</span> (ArgIndex > (<span class="keywordtype">unsigned</span>)IsMemberCall)</div>
+<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>       Out << <span class="stringliteral">", "</span>;</div>
+<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div>
+<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ParmVarDecl.html" title="ParmVarDecl - Represents a parameter to a function.">ParmVarDecl</a> *<a class="code" href="SemaOverload_8cpp.html#af465899bf43044df83229078154bc2ed">Param</a> = *I;</div>
+<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &Arg = Frame->Arguments[ArgIndex];</div>
+<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>     Arg.<a class="code" href="classclang_1_1APValue.html#a7648d6429b20e25e6e7afa4c5f5bae7f">printPretty</a>(Out, Frame->Info.Ctx, Param-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>());</div>
+<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span> </div>
+<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>     <span class="keywordflow">if</span> (ArgIndex == 0 && IsMemberCall)</div>
+<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>       Out << <span class="stringliteral">"->"</span> << *Frame->Callee << <span class="charliteral">'('</span>;</div>
+<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>   }</div>
+<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span> </div>
+<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>   Out << <span class="charliteral">')'</span>;</div>
+<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> }</div>
+<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> <span class="comment"></span></div>
+<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span> <span class="comment">/// Evaluate an expression to see if it had side-effects, and discard its</span></div>
+<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span> <span class="comment">/// result.</span></div>
+<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span> <span class="comment">/// \return \c true if the caller should keep evaluating.</span></div>
+<div class="line"><a name="l01127"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a59ccfd804cf0140587b18fe8139eceea"> 1127</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a59ccfd804cf0140587b18fe8139eceea">EvaluateIgnoredValue</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E) {</div>
+<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> Scratch;</div>
+<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae7dcbcdd6d581c905cc4eeb5fa79c86b">Evaluate</a>(Scratch, Info, E))</div>
+<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>     <span class="comment">// We don't need the value, but we might have skipped a side effect here.</span></div>
+<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>     <span class="keywordflow">return</span> Info.noteSideEffect();</div>
+<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span> }</div>
+<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> <span class="comment"></span></div>
+<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span> <span class="comment">/// Sign- or zero-extend a value to 64 bits. If it's already 64 bits, just</span></div>
+<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span> <span class="comment">/// return its existing value.</span></div>
+<div class="line"><a name="l01137"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#aa3ebbc95a7d7fc16cb849f7eb01a1865"> 1137</a></span> <span class="comment"></span><span class="keyword">static</span> int64_t <a class="code" href="ExprConstant_8cpp.html#aa3ebbc95a7d7fc16cb849f7eb01a1865">getExtValue</a>(<span class="keyword">const</span> APSInt &Value) {</div>
+<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>   <span class="keywordflow">return</span> Value.isSigned() ? Value.getSExtValue()</div>
+<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>                           : <span class="keyword">static_cast<</span>int64_t<span class="keyword">></span>(Value.getZExtValue());</div>
+<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span> }</div>
+<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span> <span class="comment"></span></div>
+<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span> <span class="comment">/// Should this call expression be treated as a string literal?</span></div>
+<div class="line"><a name="l01143"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a5719f09d65bddc6e36bed0fdc4ba3898"> 1143</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a5719f09d65bddc6e36bed0fdc4ba3898" title="Should this call expression be treated as a string literal?">IsStringLiteralCall</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1CallExpr.html">CallExpr</a> *E) {</div>
+<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>   <span class="keywordtype">unsigned</span> Builtin = E-><a class="code" href="classclang_1_1CallExpr.html#ab1d8251c5169109b2f6dd3abf238155a">isBuiltinCall</a>();</div>
+<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>   <span class="keywordflow">return</span> (Builtin == Builtin::BI__builtin___CFStringMakeConstantString ||</div>
+<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>           Builtin == Builtin::BI__builtin___NSStringMakeConstantString);</div>
+<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span> }</div>
+<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span> </div>
+<div class="line"><a name="l01149"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ae3a8c8a118cc159cd5b58d46c3047b6a"> 1149</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ae3a8c8a118cc159cd5b58d46c3047b6a">IsGlobalLValue</a>(<a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> B) {</div>
+<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>   <span class="comment">// C++11 [expr.const]p3 An address constant expression is a prvalue core</span></div>
+<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>   <span class="comment">// constant expression of pointer type that evaluates to...</span></div>
+<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> </div>
+<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>   <span class="comment">// ... a null pointer value, or a prvalue core constant expression of type</span></div>
+<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>   <span class="comment">// std::nullptr_t.</span></div>
+<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>   <span class="keywordflow">if</span> (!B) <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span> </div>
+<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *D = B.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>()) {</div>
+<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>     <span class="comment">// ... the address of an object with static storage duration,</span></div>
+<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD = dyn_cast<VarDecl>(D))</div>
+<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>       <span class="keywordflow">return</span> VD->hasGlobalStorage();</div>
+<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>     <span class="comment">// ... the address of a function,</span></div>
+<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>     <span class="keywordflow">return</span> isa<FunctionDecl>(D);</div>
+<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>   }</div>
+<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span> </div>
+<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E = B.get<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a>*>();</div>
+<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>   <span class="keywordflow">switch</span> (E-><a class="code" href="classclang_1_1Stmt.html#ac881a5954ff27d475c1bbab6f5d80150">getStmtClass</a>()) {</div>
+<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>   <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>   <span class="keywordflow">case</span> Expr::CompoundLiteralExprClass: {</div>
+<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CompoundLiteralExpr.html">CompoundLiteralExpr</a> *CLE = cast<CompoundLiteralExpr>(E);</div>
+<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>     <span class="keywordflow">return</span> CLE-><a class="code" href="classclang_1_1CompoundLiteralExpr.html#ad57cda2056b141f75cc33da9ae7db769">isFileScope</a>() && CLE-><a class="code" href="classclang_1_1Expr.html#a6ef085b1e84bebe337c2a4ca4d1df5fd">isLValue</a>();</div>
+<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>   }</div>
+<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>   <span class="keywordflow">case</span> Expr::MaterializeTemporaryExprClass:</div>
+<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>     <span class="comment">// A materialized temporary might have been lifetime-extended to static</span></div>
+<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>     <span class="comment">// storage duration.</span></div>
+<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>     <span class="keywordflow">return</span> cast<MaterializeTemporaryExpr>(E)->getStorageDuration() == <a class="code" href="namespaceclang.html#a73616c07a633e772603049315dc55554a7495dcf7f33e44049d18217454dba7c0" title="Static storage duration.">SD_Static</a>;</div>
+<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>   <span class="comment">// A string literal has static storage duration.</span></div>
+<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>   <span class="keywordflow">case</span> Expr::StringLiteralClass:</div>
+<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>   <span class="keywordflow">case</span> Expr::PredefinedExprClass:</div>
+<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>   <span class="keywordflow">case</span> Expr::ObjCStringLiteralClass:</div>
+<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>   <span class="keywordflow">case</span> Expr::ObjCEncodeExprClass:</div>
+<div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>   <span class="keywordflow">case</span> Expr::CXXTypeidExprClass:</div>
+<div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>   <span class="keywordflow">case</span> Expr::CXXUuidofExprClass:</div>
+<div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>   <span class="keywordflow">case</span> Expr::CallExprClass:</div>
+<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a5719f09d65bddc6e36bed0fdc4ba3898" title="Should this call expression be treated as a string literal?">IsStringLiteralCall</a>(cast<CallExpr>(E));</div>
+<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>   <span class="comment">// For GCC compatibility, &&label has static storage duration.</span></div>
+<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>   <span class="keywordflow">case</span> Expr::AddrLabelExprClass:</div>
+<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>   <span class="comment">// A Block literal expression may be used as the initialization value for</span></div>
+<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>   <span class="comment">// Block variables at global or local static scope.</span></div>
+<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>   <span class="keywordflow">case</span> Expr::BlockExprClass:</div>
+<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>     <span class="keywordflow">return</span> !cast<BlockExpr>(E)->getBlockDecl()->hasCaptures();</div>
+<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>   <span class="keywordflow">case</span> Expr::ImplicitValueInitExprClass:</div>
+<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>     <span class="comment">// FIXME:</span></div>
+<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>     <span class="comment">// We can never form an lvalue with an implicit value initialization as its</span></div>
+<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>     <span class="comment">// base through expression evaluation, so these only appear in one case: the</span></div>
+<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>     <span class="comment">// implicit variable declaration we invent when checking whether a constexpr</span></div>
+<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>     <span class="comment">// constructor can produce a constant expression. We must assume that such</span></div>
+<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>     <span class="comment">// an expression might be a global lvalue.</span></div>
+<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>   }</div>
+<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> }</div>
+<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span> </div>
+<div class="line"><a name="l01205"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a4646c270f0066ba53a26625311a92f40"> 1205</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ExprConstant_8cpp.html#a4646c270f0066ba53a26625311a92f40">NoteLValueLocation</a>(EvalInfo &Info, <a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> Base) {</div>
+<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>   assert(Base && <span class="stringliteral">"no location for a null lvalue"</span>);</div>
+<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *VD = Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>();</div>
+<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>   <span class="keywordflow">if</span> (VD)</div>
+<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>     Info.Note(VD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>     Info.Note(Base.get<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a>*>()-><a class="code" href="classclang_1_1Expr.html#ab4fa508722ecc1546ad73cb31b0dc06c">getExprLoc</a>(),</div>
+<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>               diag::note_constexpr_temporary_here);</div>
+<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> }</div>
+<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> <span class="comment"></span></div>
+<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span> <span class="comment">/// Check that this reference or pointer core constant expression is a valid</span></div>
+<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> <span class="comment">/// value for an address or reference constant expression. Return true if we</span></div>
+<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span> <span class="comment">/// can fold this expression, whether or not it's a constant expression.</span></div>
+<div class="line"><a name="l01218"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a6b11f14cf928d7966d9f24d6adb0b15d"> 1218</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a6b11f14cf928d7966d9f24d6adb0b15d">CheckLValueConstantExpression</a>(EvalInfo &Info, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc,</div>
+<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>                                           <a class="code" href="classclang_1_1QualType.html">QualType</a> Type, <span class="keyword">const</span> LValue &LVal) {</div>
+<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>   <span class="keywordtype">bool</span> IsReferenceType = Type-><a class="code" href="classclang_1_1Type.html#ab2b860560d2ac12cd365aa09b143d195">isReferenceType</a>();</div>
+<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> </div>
+<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>   <a class="code" href="classclang_1_1APValue.html#a8788c26088c7a2a98a26ba162e229a12">APValue::LValueBase</a> Base = LVal.getLValueBase();</div>
+<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>   <span class="keyword">const</span> SubobjectDesignator &<a class="code" href="classclang_1_1Designator.html">Designator</a> = LVal.getLValueDesignator();</div>
+<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span> </div>
+<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>   <span class="comment">// Check that the object is a global. Note that the fake 'this' object we</span></div>
+<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>   <span class="comment">// manufacture when checking potential constant expressions is conservatively</span></div>
+<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>   <span class="comment">// assumed to be global here.</span></div>
+<div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae3a8c8a118cc159cd5b58d46c3047b6a">IsGlobalLValue</a>(Base)) {</div>
+<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>     <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11) {</div>
+<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *VD = Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>();</div>
+<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>       Info.Diag(Loc, diag::note_constexpr_non_global, 1)</div>
+<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>         << IsReferenceType << !Designator.Entries.empty()</div>
+<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>         << !!VD << VD;</div>
+<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>       <a class="code" href="ExprConstant_8cpp.html#a4646c270f0066ba53a26625311a92f40">NoteLValueLocation</a>(Info, Base);</div>
+<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>       Info.Diag(Loc);</div>
+<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>     }</div>
+<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>     <span class="comment">// Don't allow references to temporaries to escape.</span></div>
+<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>   }</div>
+<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>   assert((Info.checkingPotentialConstantExpression() ||</div>
+<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>           LVal.getLValueCallIndex() == 0) &&</div>
+<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>          <span class="stringliteral">"have call index for global lvalue"</span>);</div>
+<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span> </div>
+<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>   <span class="comment">// Check if this is a thread-local variable.</span></div>
+<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *VD = Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>()) {</div>
+<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *Var = dyn_cast<const VarDecl>(VD)) {</div>
+<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>       <span class="keywordflow">if</span> (Var->getTLSKind())</div>
+<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>     }</div>
+<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>   }</div>
+<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span> </div>
+<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>   <span class="comment">// Allow address constant expressions to be past-the-end pointers. This is</span></div>
+<div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>   <span class="comment">// an extension: the standard requires them to point to an object.</span></div>
+<div class="line"><a name="l01255"></a><span class="lineno"> 1255</span>   <span class="keywordflow">if</span> (!IsReferenceType)</div>
+<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span> </div>
+<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>   <span class="comment">// A reference constant expression must refer to an object.</span></div>
+<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>   <span class="keywordflow">if</span> (!Base) {</div>
+<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>     <span class="comment">// FIXME: diagnostic</span></div>
+<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>     Info.CCEDiag(Loc);</div>
+<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>   }</div>
+<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span> </div>
+<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>   <span class="comment">// Does this refer one past the end of some object?</span></div>
+<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>   <span class="keywordflow">if</span> (Designator.isOnePastTheEnd()) {</div>
+<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *VD = Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>();</div>
+<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>     Info.Diag(Loc, diag::note_constexpr_past_end, 1)</div>
+<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>       << !Designator.Entries.empty() << !!VD << VD;</div>
+<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>     <a class="code" href="ExprConstant_8cpp.html#a4646c270f0066ba53a26625311a92f40">NoteLValueLocation</a>(Info, Base);</div>
+<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>   }</div>
+<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> </div>
+<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span> }</div>
+<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span> <span class="comment"></span></div>
+<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> <span class="comment">/// Check that this core constant expression is of literal type, and if not,</span></div>
+<div class="line"><a name="l01277"></a><span class="lineno"> 1277</span> <span class="comment">/// produce an appropriate diagnostic.</span></div>
+<div class="line"><a name="l01278"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a681afd03b7238f81855595e68014b8c3"> 1278</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a681afd03b7238f81855595e68014b8c3">CheckLiteralType</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>                              <span class="keyword">const</span> LValue *This = 0) {</div>
+<div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>   <span class="keywordflow">if</span> (!E-><a class="code" href="classclang_1_1Expr.html#a4cd56ea13000be78c5459f10df89e84a">isRValue</a>() || E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>()-><a class="code" href="classclang_1_1Type.html#a67864aaa7a3c3a3738d57ae21a636942">isLiteralType</a>(Info.Ctx))</div>
+<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span> </div>
+<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>   <span class="comment">// C++1y: A constant initializer for an object o [...] may also invoke</span></div>
+<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>   <span class="comment">// constexpr constructors for o and its subobjects even if those objects</span></div>
+<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>   <span class="comment">// are of non-literal class types.</span></div>
+<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>   <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus1y && This &&</div>
+<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>       Info.EvaluatingDecl == This->getLValueBase())</div>
+<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span> </div>
+<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>   <span class="comment">// Prvalue constant expressions must be of literal types.</span></div>
+<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>   <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11)</div>
+<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>     Info.Diag(E, diag::note_constexpr_nonliteral)</div>
+<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>       << E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>     Info.Diag(E, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>   <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span> }</div>
+<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> <span class="comment"></span></div>
+<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span> <span class="comment">/// Check that this core constant expression value is a valid value for a</span></div>
+<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> <span class="comment">/// constant expression. If not, report an appropriate diagnostic. Does not</span></div>
+<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span> <span class="comment">/// check that the expression is of literal type.</span></div>
+<div class="line"><a name="l01302"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a6af94fae80e39516c116fa1e61ed80e4"> 1302</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a6af94fae80e39516c116fa1e61ed80e4">CheckConstantExpression</a>(EvalInfo &Info, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> DiagLoc,</div>
+<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>                                     <a class="code" href="classclang_1_1QualType.html">QualType</a> Type, <span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &Value) {</div>
+<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>   <span class="keywordflow">if</span> (Value.<a class="code" href="classclang_1_1APValue.html#a4717d55a23b4978d34a6f7c15b201336">isUninit</a>()) {</div>
+<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>     Info.Diag(DiagLoc, diag::note_constexpr_uninitialized)</div>
+<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>       << <span class="keyword">true</span> << Type;</div>
+<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>   }</div>
+<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> </div>
+<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>   <span class="comment">// Core issue 1454: For a literal constant expression of array or class type,</span></div>
+<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>   <span class="comment">// each subobject of its value shall have been initialized by a constant</span></div>
+<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>   <span class="comment">// expression.</span></div>
+<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>   <span class="keywordflow">if</span> (Value.<a class="code" href="classclang_1_1APValue.html#a3cb1bd8918339bf2c17a0f751fb85e2f">isArray</a>()) {</div>
+<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> EltTy = Type-><a class="code" href="classclang_1_1Type.html#a9bd7d46c52735e49f430dd4f68d32e5d">castAsArrayTypeUnsafe</a>()-><a class="code" href="classclang_1_1ArrayType.html#ad9681a11b43dc70a3c4db07d2a450d12">getElementType</a>();</div>
+<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = Value.<a class="code" href="classclang_1_1APValue.html#a0bff5401f2459cbccb49645e02ed3574">getArrayInitializedElts</a>(); I != N; ++I) {</div>
+<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a6af94fae80e39516c116fa1e61ed80e4">CheckConstantExpression</a>(Info, DiagLoc, EltTy,</div>
+<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>                                    Value.<a class="code" href="classclang_1_1APValue.html#ab9907033318713dc62ac1b7e96024286">getArrayInitializedElt</a>(I)))</div>
+<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>     }</div>
+<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>     <span class="keywordflow">if</span> (!Value.<a class="code" href="classclang_1_1APValue.html#af74d3b5c9c1d3fc82d17a4d9422ba96c">hasArrayFiller</a>())</div>
+<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a6af94fae80e39516c116fa1e61ed80e4">CheckConstantExpression</a>(Info, DiagLoc, EltTy,</div>
+<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>                                    Value.<a class="code" href="classclang_1_1APValue.html#a4c350800ac6893a481fdf15c4406d170">getArrayFiller</a>());</div>
+<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>   }</div>
+<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>   <span class="keywordflow">if</span> (Value.<a class="code" href="classclang_1_1APValue.html#ae4f878149d8f0121d84871ca2b06389d">isUnion</a>() && Value.<a class="code" href="classclang_1_1APValue.html#aa8840f6a3a28e1939f9cf3ece9b9b406">getUnionField</a>()) {</div>
+<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a6af94fae80e39516c116fa1e61ed80e4">CheckConstantExpression</a>(Info, DiagLoc,</div>
+<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>                                    Value.<a class="code" href="classclang_1_1APValue.html#aa8840f6a3a28e1939f9cf3ece9b9b406">getUnionField</a>()-><a class="code" href="classclang_1_1ValueDecl.html#aefa6d3327144aee23d2935f41d993484">getType</a>(),</div>
+<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>                                    Value.<a class="code" href="classclang_1_1APValue.html#a14ddc0488234c33e98f71fc269473e6e">getUnionValue</a>());</div>
+<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>   }</div>
+<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>   <span class="keywordflow">if</span> (Value.<a class="code" href="classclang_1_1APValue.html#a3a9aa31a2224e5c6177c2c011464bef0">isStruct</a>()) {</div>
+<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>     <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *RD = Type-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1RecordType.html">RecordType</a>>()->getDecl();</div>
+<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *CD = dyn_cast<CXXRecordDecl>(RD)) {</div>
+<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>       <span class="keywordtype">unsigned</span> BaseIndex = 0;</div>
+<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>       <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1CXXBaseSpecifier.html" title="Represents a base class of a C++ class.">CXXRecordDecl::base_class_const_iterator</a> I = CD->bases_begin(),</div>
+<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>              End = CD->bases_end(); I != End; ++I, ++BaseIndex) {</div>
+<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>         <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a6af94fae80e39516c116fa1e61ed80e4">CheckConstantExpression</a>(Info, DiagLoc, I->getType(),</div>
+<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>                                      Value.<a class="code" href="classclang_1_1APValue.html#a67412e5e61937c49c415e7460160cb81">getStructBase</a>(BaseIndex)))</div>
+<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>           <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>       }</div>
+<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>     }</div>
+<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>     <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclContext_1_1specific__decl__iterator.html">RecordDecl::field_iterator</a> I = RD-><a class="code" href="classclang_1_1RecordDecl.html#a723c70951c30c075e7a516d1933683e4">field_begin</a>(), E = RD-><a class="code" href="classclang_1_1RecordDecl.html#a118f17574e4199f2d26cd20902dc88ca">field_end</a>();</div>
+<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>          I != E; ++I) {</div>
+<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a6af94fae80e39516c116fa1e61ed80e4">CheckConstantExpression</a>(Info, DiagLoc, I->getType(),</div>
+<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>                                    Value.<a class="code" href="classclang_1_1APValue.html#aa09684bba5319f42788e740c0fb08163">getStructField</a>(I->getFieldIndex())))</div>
+<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>     }</div>
+<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>   }</div>
+<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span> </div>
+<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>   <span class="keywordflow">if</span> (Value.<a class="code" href="classclang_1_1APValue.html#a19d5f3448e338717c176293db4857fde">isLValue</a>()) {</div>
+<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>     LValue LVal;</div>
+<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>     LVal.setFrom(Info.Ctx, Value);</div>
+<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a6b11f14cf928d7966d9f24d6adb0b15d">CheckLValueConstantExpression</a>(Info, DiagLoc, Type, LVal);</div>
+<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>   }</div>
+<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span> </div>
+<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>   <span class="comment">// Everything else is fine.</span></div>
+<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span> }</div>
+<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span> </div>
+<div class="line"><a name="l01359"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#adc89f54dc9b534c30f9e87501e5d644a"> 1359</a></span> <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *<a class="code" href="ExprConstant_8cpp.html#adc89f54dc9b534c30f9e87501e5d644a">GetLValueBaseDecl</a>(<span class="keyword">const</span> LValue &LVal) {</div>
+<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>   <span class="keywordflow">return</span> LVal.Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>();</div>
+<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span> }</div>
+<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span> </div>
+<div class="line"><a name="l01363"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a33a6cb68e131ffd7e8070fd7aaec7d46"> 1363</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a33a6cb68e131ffd7e8070fd7aaec7d46">IsLiteralLValue</a>(<span class="keyword">const</span> LValue &Value) {</div>
+<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>   <span class="keywordflow">if</span> (Value.CallIndex)</div>
+<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E = Value.Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a>*>();</div>
+<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>   <span class="keywordflow">return</span> E && !isa<MaterializeTemporaryExpr>(E);</div>
+<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span> }</div>
+<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span> </div>
+<div class="line"><a name="l01370"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a56ab8132e5a1d0c57f9c2212a994d3a8"> 1370</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a56ab8132e5a1d0c57f9c2212a994d3a8">IsWeakLValue</a>(<span class="keyword">const</span> LValue &Value) {</div>
+<div class="line"><a name="l01371"></a><span class="lineno"> 1371</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *<a class="code" href="classclang_1_1Decl.html">Decl</a> = <a class="code" href="ExprConstant_8cpp.html#adc89f54dc9b534c30f9e87501e5d644a">GetLValueBaseDecl</a>(Value);</div>
+<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>   <span class="keywordflow">return</span> Decl && Decl-><a class="code" href="classclang_1_1ValueDecl.html#ab88b2f08d2849e8810fed782075a41ec" title="Determine whether this symbol is weakly-imported, or declared with the weak or weak-ref attr...">isWeak</a>();</div>
+<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span> }</div>
+<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span> </div>
+<div class="line"><a name="l01375"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a9d67dbf23098636994059f2d77b6e60f"> 1375</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a9d67dbf23098636994059f2d77b6e60f">EvalPointerValueAsBool</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &Value, <span class="keywordtype">bool</span> &Result) {</div>
+<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>   <span class="comment">// A null base expression indicates a null pointer.  These are always</span></div>
+<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>   <span class="comment">// evaluatable, and they are false unless the offset is zero.</span></div>
+<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>   <span class="keywordflow">if</span> (!Value.<a class="code" href="classclang_1_1APValue.html#a7b2bb5423a2a6d6465130045072c34b2">getLValueBase</a>()) {</div>
+<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>     Result = !Value.<a class="code" href="classclang_1_1APValue.html#a84aece408f0ab81305e7fd26bdc8376a">getLValueOffset</a>().<a class="code" href="classclang_1_1CharUnits.html#af39b99432339c76e577a5149b6c59e4e" title="isZero - Test whether the quantity equals zero.">isZero</a>();</div>
+<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>   }</div>
+<div class="line"><a name="l01382"></a><span class="lineno"> 1382</span> </div>
+<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>   <span class="comment">// We have a non-null base.  These are generally known to be true, but if it's</span></div>
+<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>   <span class="comment">// a weak declaration it can be null at runtime.</span></div>
+<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>   Result = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *<a class="code" href="classclang_1_1Decl.html">Decl</a> = Value.<a class="code" href="classclang_1_1APValue.html#a7b2bb5423a2a6d6465130045072c34b2">getLValueBase</a>().dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>();</div>
+<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>   <span class="keywordflow">return</span> !Decl || !Decl-><a class="code" href="classclang_1_1ValueDecl.html#ab88b2f08d2849e8810fed782075a41ec" title="Determine whether this symbol is weakly-imported, or declared with the weak or weak-ref attr...">isWeak</a>();</div>
+<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span> }</div>
+<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span> </div>
+<div class="line"><a name="l01390"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a6608fe6b3f747ee33e9d4213076dc02f"> 1390</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a6608fe6b3f747ee33e9d4213076dc02f">HandleConversionToBool</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &Val, <span class="keywordtype">bool</span> &Result) {</div>
+<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>   <span class="keywordflow">switch</span> (Val.<a class="code" href="classclang_1_1APValue.html#acf8c2e6d7c5ddd341f919feab04e2297">getKind</a>()) {</div>
+<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>   <span class="keywordflow">case</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880a254bd1cf3c287ac4eb3d47320b1c92b6">APValue::Uninitialized</a>:</div>
+<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>   <span class="keywordflow">case</span> APValue::Int:</div>
+<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>     Result = Val.<a class="code" href="classclang_1_1APValue.html#ad98d172246672624011c2adc236ef0ed">getInt</a>().getBoolValue();</div>
+<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>   <span class="keywordflow">case</span> APValue::Float:</div>
+<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>     Result = !Val.<a class="code" href="classclang_1_1APValue.html#a3a5e141a004d2422d55018d081a6d221">getFloat</a>().isZero();</div>
+<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>   <span class="keywordflow">case</span> APValue::ComplexInt:</div>
+<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>     Result = Val.<a class="code" href="classclang_1_1APValue.html#a66e83a13553ec7be07e881a723ed2555">getComplexIntReal</a>().getBoolValue() ||</div>
+<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>              Val.<a class="code" href="classclang_1_1APValue.html#a96f59e7d6f7d451e0c2498f69a0551b9">getComplexIntImag</a>().getBoolValue();</div>
+<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>   <span class="keywordflow">case</span> APValue::ComplexFloat:</div>
+<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>     Result = !Val.<a class="code" href="classclang_1_1APValue.html#adc48962e4b1f10ede59a8b8e77988045">getComplexFloatReal</a>().isZero() ||</div>
+<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>              !Val.<a class="code" href="classclang_1_1APValue.html#aacb7fee7e82d960975225ac6dc729a45">getComplexFloatImag</a>().isZero();</div>
+<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>   <span class="keywordflow">case</span> APValue::LValue:</div>
+<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a9d67dbf23098636994059f2d77b6e60f">EvalPointerValueAsBool</a>(Val, Result);</div>
+<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>   <span class="keywordflow">case</span> APValue::MemberPointer:</div>
+<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>     Result = Val.<a class="code" href="classclang_1_1APValue.html#a09eb8447b018545715ce1eafd688d378">getMemberPointerDecl</a>();</div>
+<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>   <span class="keywordflow">case</span> APValue::Vector:</div>
+<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>   <span class="keywordflow">case</span> APValue::Array:</div>
+<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>   <span class="keywordflow">case</span> APValue::Struct:</div>
+<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>   <span class="keywordflow">case</span> APValue::Union:</div>
+<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>   <span class="keywordflow">case</span> APValue::AddrLabelDiff:</div>
+<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>   }</div>
+<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span> </div>
+<div class="line"><a name="l01421"></a><span class="lineno"> 1421</span>   llvm_unreachable(<span class="stringliteral">"unknown APValue kind"</span>);</div>
+<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span> }</div>
+<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span> </div>
+<div class="line"><a name="l01424"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a8cb5646eff46aaf7f593e1bc795b78a0"> 1424</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a8cb5646eff46aaf7f593e1bc795b78a0">EvaluateAsBooleanCondition</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <span class="keywordtype">bool</span> &Result,</div>
+<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>                                        EvalInfo &Info) {</div>
+<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>   assert(E-><a class="code" href="classclang_1_1Expr.html#a4cd56ea13000be78c5459f10df89e84a">isRValue</a>() && <span class="stringliteral">"missing lvalue-to-rvalue conv in bool condition"</span>);</div>
+<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> Val;</div>
+<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae7dcbcdd6d581c905cc4eeb5fa79c86b">Evaluate</a>(Val, Info, E))</div>
+<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>   <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a6608fe6b3f747ee33e9d4213076dc02f">HandleConversionToBool</a>(Val, Result);</div>
+<div class="line"><a name="l01431"></a><span class="lineno"> 1431</span> }</div>
+<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span> </div>
+<div class="line"><a name="l01433"></a><span class="lineno"> 1433</span> <span class="keyword">template</span><<span class="keyword">typename</span> T></div>
+<div class="line"><a name="l01434"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040"> 1434</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>                            <span class="keyword">const</span> T &SrcValue, <a class="code" href="classclang_1_1QualType.html">QualType</a> DestType) {</div>
+<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>   Info.CCEDiag(E, diag::note_constexpr_overflow)</div>
+<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>     << SrcValue << DestType;</div>
+<div class="line"><a name="l01438"></a><span class="lineno"> 1438</span> }</div>
+<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span> </div>
+<div class="line"><a name="l01440"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#aba178765ab9c8a38c366d526d3dd95fa"> 1440</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#aba178765ab9c8a38c366d526d3dd95fa">HandleFloatToIntCast</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> SrcType, <span class="keyword">const</span> APFloat &Value,</div>
+<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> DestType, APSInt &Result) {</div>
+<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>   <span class="keywordtype">unsigned</span> DestWidth = Info.Ctx.getIntWidth(DestType);</div>
+<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>   <span class="comment">// Determine whether we are converting to unsigned or signed.</span></div>
+<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>   <span class="keywordtype">bool</span> DestSigned = DestType-><a class="code" href="classclang_1_1Type.html#ac1a93888d84731955cd5e95d6510aea6">isSignedIntegerOrEnumerationType</a>();</div>
+<div class="line"><a name="l01446"></a><span class="lineno"> 1446</span> </div>
+<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>   Result = APSInt(DestWidth, !DestSigned);</div>
+<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>   <span class="keywordtype">bool</span> ignored;</div>
+<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>   <span class="keywordflow">if</span> (Value.convertToInteger(Result, llvm::APFloat::rmTowardZero, &ignored)</div>
+<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>       & APFloat::opInvalidOp)</div>
+<div class="line"><a name="l01451"></a><span class="lineno"> 1451</span>     <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(Info, E, Value, DestType);</div>
+<div class="line"><a name="l01452"></a><span class="lineno"> 1452</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> }</div>
+<div class="line"><a name="l01454"></a><span class="lineno"> 1454</span> </div>
+<div class="line"><a name="l01455"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#af343c1bfaa4dd74bfb2d98f8d6d0e89e"> 1455</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#af343c1bfaa4dd74bfb2d98f8d6d0e89e">HandleFloatToFloatCast</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>                                    <a class="code" href="classclang_1_1QualType.html">QualType</a> SrcType, <a class="code" href="classclang_1_1QualType.html">QualType</a> DestType,</div>
+<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>                                    APFloat &Result) {</div>
+<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>   APFloat Value = Result;</div>
+<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>   <span class="keywordtype">bool</span> ignored;</div>
+<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>   <span class="keywordflow">if</span> (Result.convert(Info.Ctx.getFloatTypeSemantics(DestType),</div>
+<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>                      APFloat::rmNearestTiesToEven, &ignored)</div>
+<div class="line"><a name="l01462"></a><span class="lineno"> 1462</span>       & APFloat::opOverflow)</div>
+<div class="line"><a name="l01463"></a><span class="lineno"> 1463</span>     <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(Info, E, Value, DestType);</div>
+<div class="line"><a name="l01464"></a><span class="lineno"> 1464</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> }</div>
+<div class="line"><a name="l01466"></a><span class="lineno"> 1466</span> </div>
+<div class="line"><a name="l01467"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ad195c92f29be06769f6a31d8688bc4b4"> 1467</a></span> <span class="keyword">static</span> APSInt <a class="code" href="ExprConstant_8cpp.html#ad195c92f29be06769f6a31d8688bc4b4">HandleIntToIntCast</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> DestType, <a class="code" href="classclang_1_1QualType.html">QualType</a> SrcType,</div>
+<div class="line"><a name="l01469"></a><span class="lineno"> 1469</span>                                  APSInt &Value) {</div>
+<div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>   <span class="keywordtype">unsigned</span> DestWidth = Info.Ctx.getIntWidth(DestType);</div>
+<div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>   APSInt Result = <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>   <span class="comment">// Figure out if this is a truncate, extend or noop cast.</span></div>
+<div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>   <span class="comment">// If the input is signed, do a sign extend, noop, or truncate.</span></div>
+<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>   Result = Result.extOrTrunc(DestWidth);</div>
+<div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>   Result.setIsUnsigned(DestType-><a class="code" href="classclang_1_1Type.html#acd6b7cb40b90681ffc9728b2615e56af">isUnsignedIntegerOrEnumerationType</a>());</div>
+<div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>   <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l01477"></a><span class="lineno"> 1477</span> }</div>
+<div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> </div>
+<div class="line"><a name="l01479"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a5ddf9c6f973652c48efaf19aacf183ab"> 1479</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a5ddf9c6f973652c48efaf19aacf183ab">HandleIntToFloatCast</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> SrcType, <span class="keyword">const</span> APSInt &Value,</div>
+<div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> DestType, APFloat &Result) {</div>
+<div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>   Result = APFloat(Info.Ctx.getFloatTypeSemantics(DestType), 1);</div>
+<div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>   <span class="keywordflow">if</span> (Result.convertFromAPInt(Value, Value.isSigned(),</div>
+<div class="line"><a name="l01484"></a><span class="lineno"> 1484</span>                               APFloat::rmNearestTiesToEven)</div>
+<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>       & APFloat::opOverflow)</div>
+<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>     <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(Info, E, Value, DestType);</div>
+<div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01488"></a><span class="lineno"> 1488</span> }</div>
+<div class="line"><a name="l01489"></a><span class="lineno"> 1489</span> </div>
+<div class="line"><a name="l01490"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a4bdc4aa6459c514bf8ae3ac16b99418b"> 1490</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a4bdc4aa6459c514bf8ae3ac16b99418b">truncateBitfieldValue</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>                                   <a class="code" href="classclang_1_1APValue.html">APValue</a> &Value, <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *FD) {</div>
+<div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>   assert(FD-><a class="code" href="classclang_1_1FieldDecl.html#af8c123e193d426f26496c15e2f168a49" title="isBitfield - Determines whether this field is a bitfield.">isBitField</a>() && <span class="stringliteral">"truncateBitfieldValue on non-bitfield"</span>);</div>
+<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span> </div>
+<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>   <span class="keywordflow">if</span> (!Value.<a class="code" href="classclang_1_1APValue.html#a2855da9b1c52b71c3e5f07d4bf56bd33">isInt</a>()) {</div>
+<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>     <span class="comment">// Trying to store a pointer-cast-to-integer into a bitfield.</span></div>
+<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>     <span class="comment">// FIXME: In this case, we should provide the diagnostic for casting</span></div>
+<div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>     <span class="comment">// a pointer to an integer.</span></div>
+<div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>     assert(Value.<a class="code" href="classclang_1_1APValue.html#a19d5f3448e338717c176293db4857fde">isLValue</a>() && <span class="stringliteral">"integral value neither int nor lvalue?"</span>);</div>
+<div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>     Info.Diag(E);</div>
+<div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>   }</div>
+<div class="line"><a name="l01502"></a><span class="lineno"> 1502</span> </div>
+<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>   APSInt &Int = Value.<a class="code" href="classclang_1_1APValue.html#ad98d172246672624011c2adc236ef0ed">getInt</a>();</div>
+<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>   <span class="keywordtype">unsigned</span> OldBitWidth = Int.getBitWidth();</div>
+<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>   <span class="keywordtype">unsigned</span> NewBitWidth = FD-><a class="code" href="classclang_1_1FieldDecl.html#ae5e97c5f219d8bd73934ef38453ae44a">getBitWidthValue</a>(Info.Ctx);</div>
+<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>   <span class="keywordflow">if</span> (NewBitWidth < OldBitWidth)</div>
+<div class="line"><a name="l01507"></a><span class="lineno"> 1507</span>     Int = Int.trunc(NewBitWidth).extend(OldBitWidth);</div>
+<div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01509"></a><span class="lineno"> 1509</span> }</div>
+<div class="line"><a name="l01510"></a><span class="lineno"> 1510</span> </div>
+<div class="line"><a name="l01511"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a8acfc1c747c0bf7dbe519f9a521ae013"> 1511</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a8acfc1c747c0bf7dbe519f9a521ae013">EvalAndBitcastToAPInt</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>                                   llvm::APInt &Res) {</div>
+<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> SVal;</div>
+<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae7dcbcdd6d581c905cc4eeb5fa79c86b">Evaluate</a>(SVal, Info, E))</div>
+<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01516"></a><span class="lineno"> 1516</span>   <span class="keywordflow">if</span> (SVal.<a class="code" href="classclang_1_1APValue.html#a2855da9b1c52b71c3e5f07d4bf56bd33">isInt</a>()) {</div>
+<div class="line"><a name="l01517"></a><span class="lineno"> 1517</span>     Res = SVal.<a class="code" href="classclang_1_1APValue.html#ad98d172246672624011c2adc236ef0ed">getInt</a>();</div>
+<div class="line"><a name="l01518"></a><span class="lineno"> 1518</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01519"></a><span class="lineno"> 1519</span>   }</div>
+<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>   <span class="keywordflow">if</span> (SVal.<a class="code" href="classclang_1_1APValue.html#aef539550800c6bb039d271ecd1a7e4c9">isFloat</a>()) {</div>
+<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>     Res = SVal.<a class="code" href="classclang_1_1APValue.html#a3a5e141a004d2422d55018d081a6d221">getFloat</a>().bitcastToAPInt();</div>
+<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>   }</div>
+<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>   <span class="keywordflow">if</span> (SVal.<a class="code" href="classclang_1_1APValue.html#a548d924bf2c15563ce42f014f4db4e97">isVector</a>()) {</div>
+<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> VecTy = E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>     <span class="keywordtype">unsigned</span> VecSize = Info.Ctx.getTypeSize(VecTy);</div>
+<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> EltTy = VecTy-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1VectorType.html">VectorType</a>>()-><a class="code" href="SemaChecking_8cpp.html#a9f6c9a015ec06db5f86672533b582823">getElementType</a>();</div>
+<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>     <span class="keywordtype">unsigned</span> EltSize = Info.Ctx.getTypeSize(EltTy);</div>
+<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>     <span class="keywordtype">bool</span> BigEndian = Info.Ctx.getTargetInfo().isBigEndian();</div>
+<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>     Res = llvm::APInt::getNullValue(VecSize);</div>
+<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i < SVal.<a class="code" href="classclang_1_1APValue.html#a2be42f83f90f2702834e58959aca7d1f">getVectorLength</a>(); i++) {</div>
+<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>       <a class="code" href="classclang_1_1APValue.html">APValue</a> &Elt = SVal.<a class="code" href="classclang_1_1APValue.html#ae97c5ceb812ad7bec80e7d7c89eb6867">getVectorElt</a>(i);</div>
+<div class="line"><a name="l01533"></a><span class="lineno"> 1533</span>       llvm::APInt EltAsInt;</div>
+<div class="line"><a name="l01534"></a><span class="lineno"> 1534</span>       <span class="keywordflow">if</span> (Elt.<a class="code" href="classclang_1_1APValue.html#a2855da9b1c52b71c3e5f07d4bf56bd33">isInt</a>()) {</div>
+<div class="line"><a name="l01535"></a><span class="lineno"> 1535</span>         EltAsInt = Elt.<a class="code" href="classclang_1_1APValue.html#ad98d172246672624011c2adc236ef0ed">getInt</a>();</div>
+<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (Elt.<a class="code" href="classclang_1_1APValue.html#aef539550800c6bb039d271ecd1a7e4c9">isFloat</a>()) {</div>
+<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>         EltAsInt = Elt.<a class="code" href="classclang_1_1APValue.html#a3a5e141a004d2422d55018d081a6d221">getFloat</a>().bitcastToAPInt();</div>
+<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>         <span class="comment">// Don't try to handle vectors of anything other than int or float</span></div>
+<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>         <span class="comment">// (not sure if it's possible to hit this case).</span></div>
+<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>         Info.Diag(E, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>       }</div>
+<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>       <span class="keywordtype">unsigned</span> BaseEltSize = EltAsInt.getBitWidth();</div>
+<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>       <span class="keywordflow">if</span> (BigEndian)</div>
+<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>         Res |= EltAsInt.zextOrTrunc(VecSize).rotr(i*EltSize+BaseEltSize);</div>
+<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>         Res |= EltAsInt.zextOrTrunc(VecSize).rotl(i*EltSize);</div>
+<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>     }</div>
+<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>   }</div>
+<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>   <span class="comment">// Give up if the input isn't an int, float, or vector.  For example, we</span></div>
+<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>   <span class="comment">// reject "(v4i16)(intptr_t)&a".</span></div>
+<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>   Info.Diag(E, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>   <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span> }</div>
+<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span> <span class="comment"></span></div>
+<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span> <span class="comment">/// Perform the given integer operation, which is known to need at most BitWidth</span></div>
+<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span> <span class="comment">/// bits, and check for overflow in the original type (if that type was not an</span></div>
+<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span> <span class="comment">/// unsigned type).</span></div>
+<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span> <span class="comment"></span><span class="keyword">template</span><<span class="keyword">typename</span> Operation></div>
+<div class="line"><a name="l01562"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a52e1811c4cb206be1d40f3f3d6c8fa8b"> 1562</a></span> <span class="keyword">static</span> APSInt <a class="code" href="ExprConstant_8cpp.html#a52e1811c4cb206be1d40f3f3d6c8fa8b">CheckedIntArithmetic</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>                                    <span class="keyword">const</span> APSInt &LHS, <span class="keyword">const</span> APSInt &RHS,</div>
+<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>                                    <span class="keywordtype">unsigned</span> BitWidth, Operation Op) {</div>
+<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>   <span class="keywordflow">if</span> (LHS.isUnsigned())</div>
+<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>     <span class="keywordflow">return</span> Op(LHS, RHS);</div>
+<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span> </div>
+<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>   APSInt <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>(Op(LHS.extend(BitWidth), RHS.extend(BitWidth)), <span class="keyword">false</span>);</div>
+<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>   APSInt Result = Value.trunc(LHS.getBitWidth());</div>
+<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>   <span class="keywordflow">if</span> (Result.extend(BitWidth) != <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>) {</div>
+<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>     <span class="keywordflow">if</span> (Info.checkingForOverflow())</div>
+<div class="line"><a name="l01572"></a><span class="lineno"> 1572</span>       Info.Ctx.getDiagnostics().Report(E-><a class="code" href="classclang_1_1Expr.html#ab4fa508722ecc1546ad73cb31b0dc06c">getExprLoc</a>(),</div>
+<div class="line"><a name="l01573"></a><span class="lineno"> 1573</span>         diag::warn_integer_constant_overflow)</div>
+<div class="line"><a name="l01574"></a><span class="lineno"> 1574</span>           << Result.toString(10) << E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l01575"></a><span class="lineno"> 1575</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01576"></a><span class="lineno"> 1576</span>       <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(Info, E, Value, E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l01577"></a><span class="lineno"> 1577</span>   }</div>
+<div class="line"><a name="l01578"></a><span class="lineno"> 1578</span>   <span class="keywordflow">return</span> Result;</div>
+<div class="line"><a name="l01579"></a><span class="lineno"> 1579</span> }</div>
+<div class="line"><a name="l01580"></a><span class="lineno"> 1580</span> <span class="comment"></span></div>
+<div class="line"><a name="l01581"></a><span class="lineno"> 1581</span> <span class="comment">/// Perform the given binary integer operation.</span></div>
+<div class="line"><a name="l01582"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#acc801d05d9e71210927120273f6e0e0b"> 1582</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#acc801d05d9e71210927120273f6e0e0b" title="Perform the given binary integer operation.">handleIntIntBinOp</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <span class="keyword">const</span> APSInt &LHS,</div>
+<div class="line"><a name="l01583"></a><span class="lineno"> 1583</span>                               <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1">BinaryOperatorKind</a> Opcode, APSInt RHS,</div>
+<div class="line"><a name="l01584"></a><span class="lineno"> 1584</span>                               APSInt &Result) {</div>
+<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>   <span class="keywordflow">switch</span> (Opcode) {</div>
+<div class="line"><a name="l01586"></a><span class="lineno"> 1586</span>   <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l01587"></a><span class="lineno"> 1587</span>     Info.Diag(E);</div>
+<div class="line"><a name="l01588"></a><span class="lineno"> 1588</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01589"></a><span class="lineno"> 1589</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a8e23022cab4ed3bcb24b7acd01f623e9">BO_Mul</a>:</div>
+<div class="line"><a name="l01590"></a><span class="lineno"> 1590</span>     Result = <a class="code" href="ExprConstant_8cpp.html#a52e1811c4cb206be1d40f3f3d6c8fa8b">CheckedIntArithmetic</a>(Info, E, LHS, RHS, LHS.getBitWidth() * 2,</div>
+<div class="line"><a name="l01591"></a><span class="lineno"> 1591</span>                                   std::multiplies<APSInt>());</div>
+<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1abe63fd1a02a7d1191c3b2fd102b983bd">BO_Add</a>:</div>
+<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>     Result = <a class="code" href="ExprConstant_8cpp.html#a52e1811c4cb206be1d40f3f3d6c8fa8b">CheckedIntArithmetic</a>(Info, E, LHS, RHS, LHS.getBitWidth() + 1,</div>
+<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>                                   std::plus<APSInt>());</div>
+<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1af84c54a9c8a061371180b3e8b25d4c3f">BO_Sub</a>:</div>
+<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>     Result = <a class="code" href="ExprConstant_8cpp.html#a52e1811c4cb206be1d40f3f3d6c8fa8b">CheckedIntArithmetic</a>(Info, E, LHS, RHS, LHS.getBitWidth() + 1,</div>
+<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>                                   std::minus<APSInt>());</div>
+<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1add0a26702b466b3820e0032922751589">BO_And</a>: Result = LHS & RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a01db02868a5b622d647d2a3f7d7d0c5a">BO_Xor</a>: Result = LHS ^ RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a0bbf9a36f955dba18422f3c8800443d1">BO_Or</a>:  Result = LHS | RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a58e04dd371aa4ff24af1f1ebc04739a5">BO_Div</a>:</div>
+<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a91a7868de509af06d04ef1c6e21383be">BO_Rem</a>:</div>
+<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>     <span class="keywordflow">if</span> (RHS == 0) {</div>
+<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>       Info.Diag(E, diag::note_expr_divide_by_zero);</div>
+<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>     }</div>
+<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>     <span class="comment">// Check for overflow case: INT_MIN / -1 or INT_MIN % -1.</span></div>
+<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>     <span class="keywordflow">if</span> (RHS.isNegative() && RHS.isAllOnesValue() &&</div>
+<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>         LHS.isSigned() && LHS.isMinSignedValue())</div>
+<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>       <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(Info, E, -LHS.extend(LHS.getBitWidth() + 1), E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>     Result = (Opcode == <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a91a7868de509af06d04ef1c6e21383be">BO_Rem</a> ? LHS % RHS : LHS / RHS);</div>
+<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a2a7b3ad7ff838b9d313312f2dde50cb0">BO_Shl</a>: {</div>
+<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>     <span class="keywordflow">if</span> (Info.getLangOpts().OpenCL)</div>
+<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>       <span class="comment">// OpenCL 6.3j: shift values are effectively % word size of LHS.</span></div>
+<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>       RHS &= APSInt(llvm::APInt(RHS.getBitWidth(),</div>
+<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>                     <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(LHS.getBitWidth() - 1)),</div>
+<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>                     RHS.isUnsigned());</div>
+<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (RHS.isSigned() && RHS.isNegative()) {</div>
+<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>       <span class="comment">// During constant-folding, a negative shift is an opposite shift. Such</span></div>
+<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>       <span class="comment">// a shift is not a constant expression.</span></div>
+<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>       Info.CCEDiag(E, diag::note_constexpr_negative_shift) << RHS;</div>
+<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>       RHS = -RHS;</div>
+<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>       <span class="keywordflow">goto</span> shift_right;</div>
+<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>     }</div>
+<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>   shift_left:</div>
+<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>     <span class="comment">// C++11 [expr.shift]p1: Shift width must be less than the bit width of</span></div>
+<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>     <span class="comment">// the shifted type.</span></div>
+<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>     <span class="keywordtype">unsigned</span> SA = (<a class="code" href="classunsigned.html">unsigned</a>) RHS.getLimitedValue(LHS.getBitWidth()-1);</div>
+<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>     <span class="keywordflow">if</span> (SA != RHS) {</div>
+<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>       Info.CCEDiag(E, diag::note_constexpr_large_shift)</div>
+<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>         << RHS << E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>() << LHS.getBitWidth();</div>
+<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (LHS.isSigned()) {</div>
+<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>       <span class="comment">// C++11 [expr.shift]p2: A signed left shift must have a non-negative</span></div>
+<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>       <span class="comment">// operand, and must not overflow the corresponding unsigned type.</span></div>
+<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>       <span class="keywordflow">if</span> (LHS.isNegative())</div>
+<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>         Info.CCEDiag(E, diag::note_constexpr_lshift_of_negative) << LHS;</div>
+<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (LHS.countLeadingZeros() < SA)</div>
+<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>         Info.CCEDiag(E, diag::note_constexpr_lshift_discards);</div>
+<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>     }</div>
+<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>     Result = LHS << SA;</div>
+<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>   }</div>
+<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a05544609a9c447c91873ed3fb1fec26c">BO_Shr</a>: {</div>
+<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>     <span class="keywordflow">if</span> (Info.getLangOpts().OpenCL)</div>
+<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>       <span class="comment">// OpenCL 6.3j: shift values are effectively % word size of LHS.</span></div>
+<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>       RHS &= APSInt(llvm::APInt(RHS.getBitWidth(),</div>
+<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>                     <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(LHS.getBitWidth() - 1)),</div>
+<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>                     RHS.isUnsigned());</div>
+<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>     <span class="keywordflow">else</span> <span class="keywordflow">if</span> (RHS.isSigned() && RHS.isNegative()) {</div>
+<div class="line"><a name="l01654"></a><span class="lineno"> 1654</span>       <span class="comment">// During constant-folding, a negative shift is an opposite shift. Such a</span></div>
+<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>       <span class="comment">// shift is not a constant expression.</span></div>
+<div class="line"><a name="l01656"></a><span class="lineno"> 1656</span>       Info.CCEDiag(E, diag::note_constexpr_negative_shift) << RHS;</div>
+<div class="line"><a name="l01657"></a><span class="lineno"> 1657</span>       RHS = -RHS;</div>
+<div class="line"><a name="l01658"></a><span class="lineno"> 1658</span>       <span class="keywordflow">goto</span> shift_left;</div>
+<div class="line"><a name="l01659"></a><span class="lineno"> 1659</span>     }</div>
+<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>   shift_right:</div>
+<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>     <span class="comment">// C++11 [expr.shift]p1: Shift width must be less than the bit width of the</span></div>
+<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>     <span class="comment">// shifted type.</span></div>
+<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>     <span class="keywordtype">unsigned</span> SA = (<a class="code" href="classunsigned.html">unsigned</a>) RHS.getLimitedValue(LHS.getBitWidth()-1);</div>
+<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>     <span class="keywordflow">if</span> (SA != RHS)</div>
+<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>       Info.CCEDiag(E, diag::note_constexpr_large_shift)</div>
+<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>         << RHS << E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>() << LHS.getBitWidth();</div>
+<div class="line"><a name="l01667"></a><span class="lineno"> 1667</span>     Result = LHS >> SA;</div>
+<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01669"></a><span class="lineno"> 1669</span>   }</div>
+<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span> </div>
+<div class="line"><a name="l01671"></a><span class="lineno"> 1671</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a34afd641c1839b1ebdf5b96779becc5e">BO_LT</a>: Result = LHS < RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a9ff57a80bfff7f4a29cfc5ea9525ed6f">BO_GT</a>: Result = LHS > RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01673"></a><span class="lineno"> 1673</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1ab1b013f11421020dffa959a6c1ed45af">BO_LE</a>: Result = LHS <= RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a49c5777674892e127aeeb0746b18a1e2">BO_GE</a>: Result = LHS >= RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a69f29b9100be3ced416f394df1b8387d">BO_EQ</a>: Result = LHS == RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01676"></a><span class="lineno"> 1676</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1ad1f67b78e6981e7d44e0a1794432d104">BO_NE</a>: Result = LHS != RHS; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01677"></a><span class="lineno"> 1677</span>   }</div>
+<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span> }</div>
+<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span> <span class="comment"></span></div>
+<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span> <span class="comment">/// Perform the given binary floating-point operation, in-place, on LHS.</span></div>
+<div class="line"><a name="l01681"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a1cba6b943c1308df8866ffdac060dfa8"> 1681</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a1cba6b943c1308df8866ffdac060dfa8" title="Perform the given binary floating-point operation, in-place, on LHS.">handleFloatFloatBinOp</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>                                   APFloat &LHS, <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1">BinaryOperatorKind</a> Opcode,</div>
+<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>                                   <span class="keyword">const</span> APFloat &RHS) {</div>
+<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>   <span class="keywordflow">switch</span> (Opcode) {</div>
+<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>   <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>     Info.Diag(E);</div>
+<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01688"></a><span class="lineno"> 1688</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a8e23022cab4ed3bcb24b7acd01f623e9">BO_Mul</a>:</div>
+<div class="line"><a name="l01689"></a><span class="lineno"> 1689</span>     LHS.multiply(RHS, APFloat::rmNearestTiesToEven);</div>
+<div class="line"><a name="l01690"></a><span class="lineno"> 1690</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01691"></a><span class="lineno"> 1691</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1abe63fd1a02a7d1191c3b2fd102b983bd">BO_Add</a>:</div>
+<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>     LHS.add(RHS, APFloat::rmNearestTiesToEven);</div>
+<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1af84c54a9c8a061371180b3e8b25d4c3f">BO_Sub</a>:</div>
+<div class="line"><a name="l01695"></a><span class="lineno"> 1695</span>     LHS.subtract(RHS, APFloat::rmNearestTiesToEven);</div>
+<div class="line"><a name="l01696"></a><span class="lineno"> 1696</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01697"></a><span class="lineno"> 1697</span>   <span class="keywordflow">case</span> <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a58e04dd371aa4ff24af1f1ebc04739a5">BO_Div</a>:</div>
+<div class="line"><a name="l01698"></a><span class="lineno"> 1698</span>     LHS.divide(RHS, APFloat::rmNearestTiesToEven);</div>
+<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>     <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>   }</div>
+<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span> </div>
+<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>   <span class="keywordflow">if</span> (LHS.isInfinity() || LHS.isNaN())</div>
+<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>     Info.CCEDiag(E, diag::note_constexpr_float_arithmetic) << LHS.isNaN();</div>
+<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span> }</div>
+<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span> <span class="comment"></span></div>
+<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span> <span class="comment">/// Cast an lvalue referring to a base subobject to a derived class, by</span></div>
+<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span> <span class="comment">/// truncating the lvalue's path to the given length.</span></div>
+<div class="line"><a name="l01709"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a58371a6c6d61fb8c0b1cb9696f6e4426"> 1709</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a58371a6c6d61fb8c0b1cb9696f6e4426">CastToDerivedClass</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, LValue &Result,</div>
+<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>                                <span class="keyword">const</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *TruncatedType,</div>
+<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>                                <span class="keywordtype">unsigned</span> TruncatedElements) {</div>
+<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>   SubobjectDesignator &D = Result.Designator;</div>
+<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span> </div>
+<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>   <span class="comment">// Check we actually point to a derived class object.</span></div>
+<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>   <span class="keywordflow">if</span> (TruncatedElements == D.Entries.size())</div>
+<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>   assert(TruncatedElements >= D.MostDerivedPathLength &&</div>
+<div class="line"><a name="l01718"></a><span class="lineno"> 1718</span>          <span class="stringliteral">"not casting to a derived class"</span>);</div>
+<div class="line"><a name="l01719"></a><span class="lineno"> 1719</span>   <span class="keywordflow">if</span> (!Result.checkSubobject(Info, E, CSK_Derived))</div>
+<div class="line"><a name="l01720"></a><span class="lineno"> 1720</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span> </div>
+<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>   <span class="comment">// Truncate the path to the subobject, and remove any derived-to-base offsets.</span></div>
+<div class="line"><a name="l01723"></a><span class="lineno"> 1723</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *RD = TruncatedType;</div>
+<div class="line"><a name="l01724"></a><span class="lineno"> 1724</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = TruncatedElements, N = D.Entries.size(); I != N; ++I) {</div>
+<div class="line"><a name="l01725"></a><span class="lineno"> 1725</span>     <span class="keywordflow">if</span> (RD-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>()) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01726"></a><span class="lineno"> 1726</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTRecordLayout.html">ASTRecordLayout</a> &Layout = Info.Ctx.getASTRecordLayout(RD);</div>
+<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Base = getAsBaseClass(D.Entries[I]);</div>
+<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>     <span class="keywordflow">if</span> (isVirtualBaseClass(D.Entries[I]))</div>
+<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>       Result.Offset -= Layout.<a class="code" href="classclang_1_1ASTRecordLayout.html#afc9e06582d41a24ec356be836bb8775c" title="getVBaseClassOffset - Get the offset, in chars, for the given base class.">getVBaseClassOffset</a>(Base);</div>
+<div class="line"><a name="l01730"></a><span class="lineno"> 1730</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>       Result.Offset -= Layout.<a class="code" href="classclang_1_1ASTRecordLayout.html#a23d0a748e9b3b4515c23c5f9beabb2d7" title="getBaseClassOffset - Get the offset, in chars, for the given base class.">getBaseClassOffset</a>(Base);</div>
+<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>     RD = Base;</div>
+<div class="line"><a name="l01733"></a><span class="lineno"> 1733</span>   }</div>
+<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>   D.Entries.resize(TruncatedElements);</div>
+<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span> }</div>
+<div class="line"><a name="l01737"></a><span class="lineno"> 1737</span> </div>
+<div class="line"><a name="l01738"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#adb3af383e7703d8c00b31b22640001f8"> 1738</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#adb3af383e7703d8c00b31b22640001f8">HandleLValueDirectBase</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, LValue &Obj,</div>
+<div class="line"><a name="l01739"></a><span class="lineno"> 1739</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Derived,</div>
+<div class="line"><a name="l01740"></a><span class="lineno"> 1740</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Base,</div>
+<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTRecordLayout.html">ASTRecordLayout</a> *RL = 0) {</div>
+<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>   <span class="keywordflow">if</span> (!RL) {</div>
+<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>     <span class="keywordflow">if</span> (Derived-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>()) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01744"></a><span class="lineno"> 1744</span>     RL = &Info.Ctx.getASTRecordLayout(Derived);</div>
+<div class="line"><a name="l01745"></a><span class="lineno"> 1745</span>   }</div>
+<div class="line"><a name="l01746"></a><span class="lineno"> 1746</span> </div>
+<div class="line"><a name="l01747"></a><span class="lineno"> 1747</span>   Obj.getLValueOffset() += RL->getBaseClassOffset(Base);</div>
+<div class="line"><a name="l01748"></a><span class="lineno"> 1748</span>   Obj.addDecl(Info, E, Base, <span class="comment">/*Virtual*/</span> <span class="keyword">false</span>);</div>
+<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01750"></a><span class="lineno"> 1750</span> }</div>
+<div class="line"><a name="l01751"></a><span class="lineno"> 1751</span> </div>
+<div class="line"><a name="l01752"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a64daec84a7b1f5327863053e2053541c"> 1752</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a64daec84a7b1f5327863053e2053541c">HandleLValueBase</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, LValue &Obj,</div>
+<div class="line"><a name="l01753"></a><span class="lineno"> 1753</span>                              <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *DerivedDecl,</div>
+<div class="line"><a name="l01754"></a><span class="lineno"> 1754</span>                              <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXBaseSpecifier.html" title="Represents a base class of a C++ class.">CXXBaseSpecifier</a> *Base) {</div>
+<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *BaseDecl = Base-><a class="code" href="classclang_1_1CXXBaseSpecifier.html#a4e9241e65b4b20b372902d0873a9d838" title="Retrieves the type of the base class.">getType</a>()-><a class="code" href="classclang_1_1Type.html#a7dc6c3dbc192ad98871c3cc484376b9a" title="Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...">getAsCXXRecordDecl</a>();</div>
+<div class="line"><a name="l01756"></a><span class="lineno"> 1756</span> </div>
+<div class="line"><a name="l01757"></a><span class="lineno"> 1757</span>   <span class="keywordflow">if</span> (!Base-><a class="code" href="classclang_1_1CXXBaseSpecifier.html#a052cc9c7e1fb5a7095469c3be012c3a4" title="Determines whether the base class is a virtual base class (or not).">isVirtual</a>())</div>
+<div class="line"><a name="l01758"></a><span class="lineno"> 1758</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#adb3af383e7703d8c00b31b22640001f8">HandleLValueDirectBase</a>(Info, E, Obj, DerivedDecl, BaseDecl);</div>
+<div class="line"><a name="l01759"></a><span class="lineno"> 1759</span> </div>
+<div class="line"><a name="l01760"></a><span class="lineno"> 1760</span>   SubobjectDesignator &D = Obj.Designator;</div>
+<div class="line"><a name="l01761"></a><span class="lineno"> 1761</span>   <span class="keywordflow">if</span> (D.Invalid)</div>
+<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01763"></a><span class="lineno"> 1763</span> </div>
+<div class="line"><a name="l01764"></a><span class="lineno"> 1764</span>   <span class="comment">// Extract most-derived object and corresponding type.</span></div>
+<div class="line"><a name="l01765"></a><span class="lineno"> 1765</span>   DerivedDecl = D.MostDerivedType->getAsCXXRecordDecl();</div>
+<div class="line"><a name="l01766"></a><span class="lineno"> 1766</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a58371a6c6d61fb8c0b1cb9696f6e4426">CastToDerivedClass</a>(Info, E, Obj, DerivedDecl, D.MostDerivedPathLength))</div>
+<div class="line"><a name="l01767"></a><span class="lineno"> 1767</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span> </div>
+<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>   <span class="comment">// Find the virtual base class.</span></div>
+<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>   <span class="keywordflow">if</span> (DerivedDecl-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>()) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTRecordLayout.html">ASTRecordLayout</a> &Layout = Info.Ctx.getASTRecordLayout(DerivedDecl);</div>
+<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>   Obj.getLValueOffset() += Layout.<a class="code" href="classclang_1_1ASTRecordLayout.html#afc9e06582d41a24ec356be836bb8775c" title="getVBaseClassOffset - Get the offset, in chars, for the given base class.">getVBaseClassOffset</a>(BaseDecl);</div>
+<div class="line"><a name="l01773"></a><span class="lineno"> 1773</span>   Obj.addDecl(Info, E, BaseDecl, <span class="comment">/*Virtual*/</span> <span class="keyword">true</span>);</div>
+<div class="line"><a name="l01774"></a><span class="lineno"> 1774</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01775"></a><span class="lineno"> 1775</span> }</div>
+<div class="line"><a name="l01776"></a><span class="lineno"> 1776</span> </div>
+<div class="line"><a name="l01777"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a5f7d90431961a8470c9ff2eec0ef3e38"> 1777</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a5f7d90431961a8470c9ff2eec0ef3e38">HandleLValueBasePath</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1CastExpr.html">CastExpr</a> *E,</div>
+<div class="line"><a name="l01778"></a><span class="lineno"> 1778</span>                                  <a class="code" href="classclang_1_1QualType.html">QualType</a> Type, LValue &Result) {</div>
+<div class="line"><a name="l01779"></a><span class="lineno"> 1779</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1CastExpr.html#ae5f3bd03b52184ff80e487ecbf3aba4d">CastExpr::path_const_iterator</a> PathI = E-><a class="code" href="classclang_1_1CastExpr.html#a0b21e5af1691cff3b580f3c5f35fe459">path_begin</a>(),</div>
+<div class="line"><a name="l01780"></a><span class="lineno"> 1780</span>                                      PathE = E-><a class="code" href="classclang_1_1CastExpr.html#a8faa0fba2075e167943ea782e86296d4">path_end</a>();</div>
+<div class="line"><a name="l01781"></a><span class="lineno"> 1781</span>        PathI != PathE; ++PathI) {</div>
+<div class="line"><a name="l01782"></a><span class="lineno"> 1782</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a64daec84a7b1f5327863053e2053541c">HandleLValueBase</a>(Info, E, Result, Type-><a class="code" href="classclang_1_1Type.html#a7dc6c3dbc192ad98871c3cc484376b9a" title="Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...">getAsCXXRecordDecl</a>(),</div>
+<div class="line"><a name="l01783"></a><span class="lineno"> 1783</span>                           *PathI))</div>
+<div class="line"><a name="l01784"></a><span class="lineno"> 1784</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01785"></a><span class="lineno"> 1785</span>     Type = (*PathI)->getType();</div>
+<div class="line"><a name="l01786"></a><span class="lineno"> 1786</span>   }</div>
+<div class="line"><a name="l01787"></a><span class="lineno"> 1787</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01788"></a><span class="lineno"> 1788</span> }</div>
+<div class="line"><a name="l01789"></a><span class="lineno"> 1789</span> <span class="comment"></span></div>
+<div class="line"><a name="l01790"></a><span class="lineno"> 1790</span> <span class="comment">/// Update LVal to refer to the given field, which must be a member of the type</span></div>
+<div class="line"><a name="l01791"></a><span class="lineno"> 1791</span> <span class="comment">/// currently described by LVal.</span></div>
+<div class="line"><a name="l01792"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#acca3041de498c3210ff1597c2dcb6217"> 1792</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#acca3041de498c3210ff1597c2dcb6217">HandleLValueMember</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, LValue &LVal,</div>
+<div class="line"><a name="l01793"></a><span class="lineno"> 1793</span>                                <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *FD,</div>
+<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>                                <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTRecordLayout.html">ASTRecordLayout</a> *RL = 0) {</div>
+<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>   <span class="keywordflow">if</span> (!RL) {</div>
+<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>     <span class="keywordflow">if</span> (FD-><a class="code" href="classclang_1_1FieldDecl.html#a3a28e1eb11c273ba8d964a990ac116d6">getParent</a>()-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>()) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>     RL = &Info.Ctx.getASTRecordLayout(FD-><a class="code" href="classclang_1_1FieldDecl.html#a3a28e1eb11c273ba8d964a990ac116d6">getParent</a>());</div>
+<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>   }</div>
+<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span> </div>
+<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>   <span class="keywordtype">unsigned</span> I = FD-><a class="code" href="classclang_1_1FieldDecl.html#a791f9f1096135e185996c5ba65491863">getFieldIndex</a>();</div>
+<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>   LVal.Offset += Info.Ctx.toCharUnitsFromBits(RL->getFieldOffset(I));</div>
+<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>   LVal.addDecl(Info, E, FD);</div>
+<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span> }</div>
+<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span> <span class="comment"></span></div>
+<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span> <span class="comment">/// Update LVal to refer to the given indirect field.</span></div>
+<div class="line"><a name="l01807"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a401b8acb82ad47bf5270135fcb6aacb4"> 1807</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a401b8acb82ad47bf5270135fcb6aacb4" title="Update LVal to refer to the given indirect field.">HandleLValueIndirectMember</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>                                        LValue &LVal,</div>
+<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>                                        <span class="keyword">const</span> <a class="code" href="classclang_1_1IndirectFieldDecl.html">IndirectFieldDecl</a> *IFD) {</div>
+<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1IndirectFieldDecl.html#a6a0fd4de9f1a53fb21791d50c9ed2abc">IndirectFieldDecl::chain_iterator</a> C = IFD-><a class="code" href="classclang_1_1IndirectFieldDecl.html#a6fc82272044f7f5834621a2f9d66540d">chain_begin</a>(),</div>
+<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>                                          CE = IFD-><a class="code" href="classclang_1_1IndirectFieldDecl.html#a844b66f0d6ce8af21722f424e884e6d0">chain_end</a>(); C != CE; ++C)</div>
+<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#acca3041de498c3210ff1597c2dcb6217">HandleLValueMember</a>(Info, E, LVal, cast<FieldDecl>(*C)))</div>
+<div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01815"></a><span class="lineno"> 1815</span> }</div>
+<div class="line"><a name="l01816"></a><span class="lineno"> 1816</span> <span class="comment"></span></div>
+<div class="line"><a name="l01817"></a><span class="lineno"> 1817</span> <span class="comment">/// Get the size of the given type in char units.</span></div>
+<div class="line"><a name="l01818"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ab8d55e256a4907f5cf78eee10329ec0a"> 1818</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ab8d55e256a4907f5cf78eee10329ec0a" title="Get the size of the given type in char units.">HandleSizeof</a>(EvalInfo &Info, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc,</div>
+<div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>                          <a class="code" href="classclang_1_1QualType.html">QualType</a> Type, <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> &Size) {</div>
+<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>   <span class="comment">// sizeof(void), __alignof__(void), sizeof(function) = 1 as a gcc</span></div>
+<div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>   <span class="comment">// extension.</span></div>
+<div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>   <span class="keywordflow">if</span> (Type-><a class="code" href="classclang_1_1Type.html#a0ee6d74a089fe24d755d9cfd8bceef3f">isVoidType</a>() || Type-><a class="code" href="classclang_1_1Type.html#af0ae1f40cbbc07fabfefc86af91072e3">isFunctionType</a>()) {</div>
+<div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>     Size = CharUnits::One();</div>
+<div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>   }</div>
+<div class="line"><a name="l01826"></a><span class="lineno"> 1826</span> </div>
+<div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>   <span class="keywordflow">if</span> (!Type-><a class="code" href="classclang_1_1Type.html#a44b461aa094dcddc539f28318e461117">isConstantSizeType</a>()) {</div>
+<div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>     <span class="comment">// sizeof(vla) is not a constantexpr: C99 6.5.3.4p2.</span></div>
+<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>     <span class="comment">// FIXME: Better diagnostic.</span></div>
+<div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>     Info.Diag(Loc);</div>
+<div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>   }</div>
+<div class="line"><a name="l01833"></a><span class="lineno"> 1833</span> </div>
+<div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>   Size = Info.Ctx.getTypeSizeInChars(Type);</div>
+<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span> }</div>
+<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span> <span class="comment"></span></div>
+<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span> <span class="comment">/// Update a pointer value to model pointer arithmetic.</span></div>
+<div class="line"><a name="l01839"></a><span class="lineno"> 1839</span> <span class="comment">/// \param Info - Information about the ongoing evaluation.</span></div>
+<div class="line"><a name="l01840"></a><span class="lineno"> 1840</span> <span class="comment">/// \param E - The expression being evaluated, for diagnostic purposes.</span></div>
+<div class="line"><a name="l01841"></a><span class="lineno"> 1841</span> <span class="comment">/// \param LVal - The pointer value to be updated.</span></div>
+<div class="line"><a name="l01842"></a><span class="lineno"> 1842</span> <span class="comment">/// \param EltTy - The pointee type represented by LVal.</span></div>
+<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span> <span class="comment">/// \param Adjustment - The adjustment, in objects of type EltTy, to add.</span></div>
+<div class="line"><a name="l01844"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ae9b1ef93d4c257b58e22f17f143d6390"> 1844</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ae9b1ef93d4c257b58e22f17f143d6390">HandleLValueArrayAdjustment</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>                                         LValue &LVal, <a class="code" href="classclang_1_1QualType.html">QualType</a> EltTy,</div>
+<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>                                         int64_t Adjustment) {</div>
+<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>   <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> SizeOfPointee;</div>
+<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ab8d55e256a4907f5cf78eee10329ec0a" title="Get the size of the given type in char units.">HandleSizeof</a>(Info, E-><a class="code" href="classclang_1_1Expr.html#ab4fa508722ecc1546ad73cb31b0dc06c">getExprLoc</a>(), EltTy, SizeOfPointee))</div>
+<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span> </div>
+<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>   <span class="comment">// Compute the new offset in the appropriate width.</span></div>
+<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>   LVal.Offset += Adjustment * SizeOfPointee;</div>
+<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>   LVal.adjustIndex(Info, E, Adjustment);</div>
+<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span> }</div>
+<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span> <span class="comment"></span></div>
+<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span> <span class="comment">/// Update an lvalue to refer to a component of a complex number.</span></div>
+<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span> <span class="comment">/// \param Info - Information about the ongoing evaluation.</span></div>
+<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span> <span class="comment">/// \param LVal - The lvalue to be updated.</span></div>
+<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span> <span class="comment">/// \param EltTy - The complex number's component type.</span></div>
+<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span> <span class="comment">/// \param Imag - False for the real component, true for the imaginary.</span></div>
+<div class="line"><a name="l01862"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a11e8c84aa584fec2b1a8bc4b7a3c1f30"> 1862</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a11e8c84aa584fec2b1a8bc4b7a3c1f30">HandleLValueComplexElement</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>                                        LValue &LVal, <a class="code" href="classclang_1_1QualType.html">QualType</a> EltTy,</div>
+<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>                                        <span class="keywordtype">bool</span> Imag) {</div>
+<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>   <span class="keywordflow">if</span> (Imag) {</div>
+<div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>     <a class="code" href="classclang_1_1CharUnits.html">CharUnits</a> SizeOfComponent;</div>
+<div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ab8d55e256a4907f5cf78eee10329ec0a" title="Get the size of the given type in char units.">HandleSizeof</a>(Info, E-><a class="code" href="classclang_1_1Expr.html#ab4fa508722ecc1546ad73cb31b0dc06c">getExprLoc</a>(), EltTy, SizeOfComponent))</div>
+<div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>     LVal.Offset += SizeOfComponent;</div>
+<div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>   }</div>
+<div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>   LVal.addComplex(Info, E, EltTy, Imag);</div>
+<div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01873"></a><span class="lineno"> 1873</span> }</div>
+<div class="line"><a name="l01874"></a><span class="lineno"> 1874</span> <span class="comment"></span></div>
+<div class="line"><a name="l01875"></a><span class="lineno"> 1875</span> <span class="comment">/// Try to evaluate the initializer for a variable declaration.</span></div>
+<div class="line"><a name="l01876"></a><span class="lineno"> 1876</span> <span class="comment">///</span></div>
+<div class="line"><a name="l01877"></a><span class="lineno"> 1877</span> <span class="comment">/// \param Info   Information about the ongoing evaluation.</span></div>
+<div class="line"><a name="l01878"></a><span class="lineno"> 1878</span> <span class="comment">/// \param E      An expression to be used when printing diagnostics.</span></div>
+<div class="line"><a name="l01879"></a><span class="lineno"> 1879</span> <span class="comment">/// \param VD     The variable whose initializer should be obtained.</span></div>
+<div class="line"><a name="l01880"></a><span class="lineno"> 1880</span> <span class="comment">/// \param Frame  The frame in which the variable was created. Must be null</span></div>
+<div class="line"><a name="l01881"></a><span class="lineno"> 1881</span> <span class="comment">///               if this variable is not local to the evaluation.</span></div>
+<div class="line"><a name="l01882"></a><span class="lineno"> 1882</span> <span class="comment">/// \param Result Filled in with a pointer to the value of the variable.</span></div>
+<div class="line"><a name="l01883"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a40a97b0be33614ae8ed65d7d6572841a"> 1883</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a40a97b0be33614ae8ed65d7d6572841a">evaluateVarDeclInit</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>                                 <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD, CallStackFrame *Frame,</div>
+<div class="line"><a name="l01885"></a><span class="lineno"> 1885</span>                                 <a class="code" href="classclang_1_1APValue.html">APValue</a> *&Result) {</div>
+<div class="line"><a name="l01886"></a><span class="lineno"> 1886</span>   <span class="comment">// If this is a parameter to an active constexpr function call, perform</span></div>
+<div class="line"><a name="l01887"></a><span class="lineno"> 1887</span>   <span class="comment">// argument substitution.</span></div>
+<div class="line"><a name="l01888"></a><span class="lineno"> 1888</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ParmVarDecl.html" title="ParmVarDecl - Represents a parameter to a function.">ParmVarDecl</a> *PVD = dyn_cast<ParmVarDecl>(VD)) {</div>
+<div class="line"><a name="l01889"></a><span class="lineno"> 1889</span>     <span class="comment">// Assume arguments of a potential constant expression are unknown</span></div>
+<div class="line"><a name="l01890"></a><span class="lineno"> 1890</span>     <span class="comment">// constant expressions.</span></div>
+<div class="line"><a name="l01891"></a><span class="lineno"> 1891</span>     <span class="keywordflow">if</span> (Info.checkingPotentialConstantExpression())</div>
+<div class="line"><a name="l01892"></a><span class="lineno"> 1892</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01893"></a><span class="lineno"> 1893</span>     <span class="keywordflow">if</span> (!Frame || !Frame->Arguments) {</div>
+<div class="line"><a name="l01894"></a><span class="lineno"> 1894</span>       Info.Diag(E, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l01895"></a><span class="lineno"> 1895</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01896"></a><span class="lineno"> 1896</span>     }</div>
+<div class="line"><a name="l01897"></a><span class="lineno"> 1897</span>     Result = &Frame->Arguments[PVD->getFunctionScopeIndex()];</div>
+<div class="line"><a name="l01898"></a><span class="lineno"> 1898</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01899"></a><span class="lineno"> 1899</span>   }</div>
+<div class="line"><a name="l01900"></a><span class="lineno"> 1900</span> </div>
+<div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>   <span class="comment">// If this is a local variable, dig out its value.</span></div>
+<div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>   <span class="keywordflow">if</span> (Frame) {</div>
+<div class="line"><a name="l01903"></a><span class="lineno"> 1903</span>     Result = Frame->getTemporary(VD);</div>
+<div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>     assert(Result && <span class="stringliteral">"missing value for local variable"</span>);</div>
+<div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>   }</div>
+<div class="line"><a name="l01907"></a><span class="lineno"> 1907</span> </div>
+<div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>   <span class="comment">// Dig out the initializer, and use the declaration which it's attached to.</span></div>
+<div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Init = VD-><a class="code" href="classclang_1_1VarDecl.html#ab495430c7cfc3bf2d5e451b5e670491f">getAnyInitializer</a>(VD);</div>
+<div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>   <span class="keywordflow">if</span> (!Init || Init-><a class="code" href="classclang_1_1Expr.html#a34f1652a9072dfd3c7119d23e1a14fa5">isValueDependent</a>()) {</div>
+<div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>     <span class="comment">// If we're checking a potential constant expression, the variable could be</span></div>
+<div class="line"><a name="l01912"></a><span class="lineno"> 1912</span>     <span class="comment">// initialized later.</span></div>
+<div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>     <span class="keywordflow">if</span> (!Info.checkingPotentialConstantExpression())</div>
+<div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>       Info.Diag(E, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01916"></a><span class="lineno"> 1916</span>   }</div>
+<div class="line"><a name="l01917"></a><span class="lineno"> 1917</span> </div>
+<div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>   <span class="comment">// If we're currently evaluating the initializer of this declaration, use that</span></div>
+<div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>   <span class="comment">// in-flight value.</span></div>
+<div class="line"><a name="l01920"></a><span class="lineno"> 1920</span>   <span class="keywordflow">if</span> (Info.EvaluatingDecl.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>() == VD) {</div>
+<div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>     Result = Info.EvaluatingDeclValue;</div>
+<div class="line"><a name="l01922"></a><span class="lineno"> 1922</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>   }</div>
+<div class="line"><a name="l01924"></a><span class="lineno"> 1924</span> </div>
+<div class="line"><a name="l01925"></a><span class="lineno"> 1925</span>   <span class="comment">// Never evaluate the initializer of a weak variable. We can't be sure that</span></div>
+<div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>   <span class="comment">// this is the definition which will be used.</span></div>
+<div class="line"><a name="l01927"></a><span class="lineno"> 1927</span>   <span class="keywordflow">if</span> (VD-><a class="code" href="classclang_1_1ValueDecl.html#ab88b2f08d2849e8810fed782075a41ec" title="Determine whether this symbol is weakly-imported, or declared with the weak or weak-ref attr...">isWeak</a>()) {</div>
+<div class="line"><a name="l01928"></a><span class="lineno"> 1928</span>     Info.Diag(E, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l01929"></a><span class="lineno"> 1929</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>   }</div>
+<div class="line"><a name="l01931"></a><span class="lineno"> 1931</span> </div>
+<div class="line"><a name="l01932"></a><span class="lineno"> 1932</span>   <span class="comment">// Check that we can fold the initializer. In C++, we will have already done</span></div>
+<div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>   <span class="comment">// this in the cases where it matters for conformance.</span></div>
+<div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>   <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<PartialDiagnosticAt, 8></a> Notes;</div>
+<div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>   <span class="keywordflow">if</span> (!VD-><a class="code" href="classclang_1_1VarDecl.html#ae9e2a56cfbf21c81d50665faf4b5c949" title="Attempt to evaluate the value of the initializer attached to this declaration, and produce notes expl...">evaluateValue</a>(Notes)) {</div>
+<div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>     Info.Diag(E, diag::note_constexpr_var_init_non_constant,</div>
+<div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>               Notes.size() + 1) << VD;</div>
+<div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>     Info.Note(VD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>     Info.addNotes(Notes);</div>
+<div class="line"><a name="l01940"></a><span class="lineno"> 1940</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!VD-><a class="code" href="classclang_1_1VarDecl.html#a647873000ca30b8abe4699963094f30e" title="Determine whether the value of the initializer attached to this declaration is an integral constant e...">checkInitIsICE</a>()) {</div>
+<div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>     Info.CCEDiag(E, diag::note_constexpr_var_init_non_constant,</div>
+<div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>                  Notes.size() + 1) << VD;</div>
+<div class="line"><a name="l01944"></a><span class="lineno"> 1944</span>     Info.Note(VD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l01945"></a><span class="lineno"> 1945</span>     Info.addNotes(Notes);</div>
+<div class="line"><a name="l01946"></a><span class="lineno"> 1946</span>   }</div>
+<div class="line"><a name="l01947"></a><span class="lineno"> 1947</span> </div>
+<div class="line"><a name="l01948"></a><span class="lineno"> 1948</span>   Result = VD-><a class="code" href="classclang_1_1VarDecl.html#a7d338888687f172e27a957d0c0a367b0" title="Return the already-evaluated value of this variable's initializer, or NULL if the value is not yet kn...">getEvaluatedValue</a>();</div>
+<div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l01950"></a><span class="lineno"> 1950</span> }</div>
+<div class="line"><a name="l01951"></a><span class="lineno"> 1951</span> </div>
+<div class="line"><a name="l01952"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a8d4c9e405ba7d89449fd2a34d4980ccc"> 1952</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a8d4c9e405ba7d89449fd2a34d4980ccc">IsConstNonVolatile</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> T) {</div>
+<div class="line"><a name="l01953"></a><span class="lineno"> 1953</span>   <a class="code" href="classclang_1_1Qualifiers.html">Qualifiers</a> Quals = T.<a class="code" href="classclang_1_1QualType.html#a4a3d75cf019a2e769498ef8d6878888b" title="Retrieve the set of qualifiers applied to this type.">getQualifiers</a>();</div>
+<div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>   <span class="keywordflow">return</span> Quals.<a class="code" href="classclang_1_1Qualifiers.html#aa4c1d746c952f79ff74dc3f3a88c21fa">hasConst</a>() && !Quals.<a class="code" href="classclang_1_1Qualifiers.html#acde218ec4de3ae41e2e9c9fc3b5e7c07">hasVolatile</a>();</div>
+<div class="line"><a name="l01955"></a><span class="lineno"> 1955</span> }</div>
+<div class="line"><a name="l01956"></a><span class="lineno"> 1956</span> <span class="comment"></span></div>
+<div class="line"><a name="l01957"></a><span class="lineno"> 1957</span> <span class="comment">/// Get the base index of the given base class within an APValue representing</span></div>
+<div class="line"><a name="l01958"></a><span class="lineno"> 1958</span> <span class="comment">/// the given derived class.</span></div>
+<div class="line"><a name="l01959"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a9796e3a3820855b660ebf451cd0ee78d"> 1959</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">unsigned</span> <a class="code" href="ExprConstant_8cpp.html#a9796e3a3820855b660ebf451cd0ee78d">getBaseIndex</a>(<span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Derived,</div>
+<div class="line"><a name="l01960"></a><span class="lineno"> 1960</span>                              <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Base) {</div>
+<div class="line"><a name="l01961"></a><span class="lineno"> 1961</span>   Base = Base-><a class="code" href="classclang_1_1CXXRecordDecl.html#a38f531b4822da3071fe56cc210978afd" title="Retrieves the "canonical" declaration of the given declaration.">getCanonicalDecl</a>();</div>
+<div class="line"><a name="l01962"></a><span class="lineno"> 1962</span>   <span class="keywordtype">unsigned</span> Index = 0;</div>
+<div class="line"><a name="l01963"></a><span class="lineno"> 1963</span>   <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1CXXBaseSpecifier.html" title="Represents a base class of a C++ class.">CXXRecordDecl::base_class_const_iterator</a> I = Derived-><a class="code" href="classclang_1_1CXXRecordDecl.html#a830448d054e3dca2db6851bd4605492c">bases_begin</a>(),</div>
+<div class="line"><a name="l01964"></a><span class="lineno"> 1964</span>          E = Derived-><a class="code" href="classclang_1_1CXXRecordDecl.html#a1e27f3ddd2de050a298094ea732bd321">bases_end</a>(); I != E; ++I, ++Index) {</div>
+<div class="line"><a name="l01965"></a><span class="lineno"> 1965</span>     <span class="keywordflow">if</span> (I->getType()->getAsCXXRecordDecl()->getCanonicalDecl() == Base)</div>
+<div class="line"><a name="l01966"></a><span class="lineno"> 1966</span>       <span class="keywordflow">return</span> Index;</div>
+<div class="line"><a name="l01967"></a><span class="lineno"> 1967</span>   }</div>
+<div class="line"><a name="l01968"></a><span class="lineno"> 1968</span> </div>
+<div class="line"><a name="l01969"></a><span class="lineno"> 1969</span>   llvm_unreachable(<span class="stringliteral">"base class missing from derived class's bases list"</span>);</div>
+<div class="line"><a name="l01970"></a><span class="lineno"> 1970</span> }</div>
+<div class="line"><a name="l01971"></a><span class="lineno"> 1971</span> <span class="comment"></span></div>
+<div class="line"><a name="l01972"></a><span class="lineno"> 1972</span> <span class="comment">/// Extract the value of a character from a string literal.</span></div>
+<div class="line"><a name="l01973"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a71f0246aa737f5be3f256cedbb14e038"> 1973</a></span> <span class="comment"></span><span class="keyword">static</span> APSInt <a class="code" href="ExprConstant_8cpp.html#a71f0246aa737f5be3f256cedbb14e038" title="Extract the value of a character from a string literal.">extractStringLiteralCharacter</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Lit,</div>
+<div class="line"><a name="l01974"></a><span class="lineno"> 1974</span>                                             uint64_t Index) {</div>
+<div class="line"><a name="l01975"></a><span class="lineno"> 1975</span>   <span class="comment">// FIXME: Support PredefinedExpr, ObjCEncodeExpr, MakeStringConstant</span></div>
+<div class="line"><a name="l01976"></a><span class="lineno"> 1976</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *S = cast<StringLiteral>(Lit);</div>
+<div class="line"><a name="l01977"></a><span class="lineno"> 1977</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT =</div>
+<div class="line"><a name="l01978"></a><span class="lineno"> 1978</span>       Info.Ctx.getAsConstantArrayType(S-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l01979"></a><span class="lineno"> 1979</span>   assert(CAT && <span class="stringliteral">"string literal isn't an array"</span>);</div>
+<div class="line"><a name="l01980"></a><span class="lineno"> 1980</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> CharType = CAT->getElementType();</div>
+<div class="line"><a name="l01981"></a><span class="lineno"> 1981</span>   assert(CharType-><a class="code" href="classclang_1_1Type.html#a8bde7a56623fd89e9efafde792c56dac">isIntegerType</a>() && <span class="stringliteral">"unexpected character type"</span>);</div>
+<div class="line"><a name="l01982"></a><span class="lineno"> 1982</span> </div>
+<div class="line"><a name="l01983"></a><span class="lineno"> 1983</span>   APSInt <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>(S-><a class="code" href="classclang_1_1StringLiteral.html#a1e6df71fc612f1b4353be0b05e3d04c7">getCharByteWidth</a>() * Info.Ctx.getCharWidth(),</div>
+<div class="line"><a name="l01984"></a><span class="lineno"> 1984</span>                CharType-><a class="code" href="classclang_1_1Type.html#aa82feef1511943cfa01bba0ffc97d22c">isUnsignedIntegerType</a>());</div>
+<div class="line"><a name="l01985"></a><span class="lineno"> 1985</span>   <span class="keywordflow">if</span> (Index < S->getLength())</div>
+<div class="line"><a name="l01986"></a><span class="lineno"> 1986</span>     Value = S-><a class="code" href="classclang_1_1StringLiteral.html#aaa05172236515550a9a3e41d4c152b92">getCodeUnit</a>(Index);</div>
+<div class="line"><a name="l01987"></a><span class="lineno"> 1987</span>   <span class="keywordflow">return</span> <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l01988"></a><span class="lineno"> 1988</span> }</div>
+<div class="line"><a name="l01989"></a><span class="lineno"> 1989</span> </div>
+<div class="line"><a name="l01990"></a><span class="lineno"> 1990</span> <span class="comment">// Expand a string literal into an array of characters.</span></div>
+<div class="line"><a name="l01991"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#aabc09fb04434272f654c281704b8b35a"> 1991</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ExprConstant_8cpp.html#aabc09fb04434272f654c281704b8b35a">expandStringLiteral</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Lit,</div>
+<div class="line"><a name="l01992"></a><span class="lineno"> 1992</span>                                 <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result) {</div>
+<div class="line"><a name="l01993"></a><span class="lineno"> 1993</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1StringLiteral.html">StringLiteral</a> *S = cast<StringLiteral>(Lit);</div>
+<div class="line"><a name="l01994"></a><span class="lineno"> 1994</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT =</div>
+<div class="line"><a name="l01995"></a><span class="lineno"> 1995</span>       Info.Ctx.getAsConstantArrayType(S-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l01996"></a><span class="lineno"> 1996</span>   assert(CAT && <span class="stringliteral">"string literal isn't an array"</span>);</div>
+<div class="line"><a name="l01997"></a><span class="lineno"> 1997</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> CharType = CAT->getElementType();</div>
+<div class="line"><a name="l01998"></a><span class="lineno"> 1998</span>   assert(CharType-><a class="code" href="classclang_1_1Type.html#a8bde7a56623fd89e9efafde792c56dac">isIntegerType</a>() && <span class="stringliteral">"unexpected character type"</span>);</div>
+<div class="line"><a name="l01999"></a><span class="lineno"> 1999</span> </div>
+<div class="line"><a name="l02000"></a><span class="lineno"> 2000</span>   <span class="keywordtype">unsigned</span> Elts = CAT->getSize().getZExtValue();</div>
+<div class="line"><a name="l02001"></a><span class="lineno"> 2001</span>   Result = <a class="code" href="classclang_1_1APValue.html">APValue</a>(<a class="code" href="structclang_1_1APValue_1_1UninitArray.html">APValue::UninitArray</a>(),</div>
+<div class="line"><a name="l02002"></a><span class="lineno"> 2002</span>                    std::min(S-><a class="code" href="classclang_1_1StringLiteral.html#af2c46f51df665b6837c7d11cbb4a312c">getLength</a>(), Elts), Elts);</div>
+<div class="line"><a name="l02003"></a><span class="lineno"> 2003</span>   APSInt <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>(S-><a class="code" href="classclang_1_1StringLiteral.html#a1e6df71fc612f1b4353be0b05e3d04c7">getCharByteWidth</a>() * Info.Ctx.getCharWidth(),</div>
+<div class="line"><a name="l02004"></a><span class="lineno"> 2004</span>                CharType-><a class="code" href="classclang_1_1Type.html#aa82feef1511943cfa01bba0ffc97d22c">isUnsignedIntegerType</a>());</div>
+<div class="line"><a name="l02005"></a><span class="lineno"> 2005</span>   <span class="keywordflow">if</span> (Result.<a class="code" href="classclang_1_1APValue.html#af74d3b5c9c1d3fc82d17a4d9422ba96c">hasArrayFiller</a>())</div>
+<div class="line"><a name="l02006"></a><span class="lineno"> 2006</span>     Result.<a class="code" href="classclang_1_1APValue.html#a4c350800ac6893a481fdf15c4406d170">getArrayFiller</a>() = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Value);</div>
+<div class="line"><a name="l02007"></a><span class="lineno"> 2007</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = Result.<a class="code" href="classclang_1_1APValue.html#a0bff5401f2459cbccb49645e02ed3574">getArrayInitializedElts</a>(); I != N; ++I) {</div>
+<div class="line"><a name="l02008"></a><span class="lineno"> 2008</span>     Value = S-><a class="code" href="classclang_1_1StringLiteral.html#aaa05172236515550a9a3e41d4c152b92">getCodeUnit</a>(I);</div>
+<div class="line"><a name="l02009"></a><span class="lineno"> 2009</span>     Result.<a class="code" href="classclang_1_1APValue.html#ab9907033318713dc62ac1b7e96024286">getArrayInitializedElt</a>(I) = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Value);</div>
+<div class="line"><a name="l02010"></a><span class="lineno"> 2010</span>   }</div>
+<div class="line"><a name="l02011"></a><span class="lineno"> 2011</span> }</div>
+<div class="line"><a name="l02012"></a><span class="lineno"> 2012</span> </div>
+<div class="line"><a name="l02013"></a><span class="lineno"> 2013</span> <span class="comment">// Expand an array so that it has more than Index filled elements.</span></div>
+<div class="line"><a name="l02014"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a8fecd0e4140e52e58fef137a5283f11e"> 2014</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="ExprConstant_8cpp.html#a8fecd0e4140e52e58fef137a5283f11e">expandArray</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Array, <span class="keywordtype">unsigned</span> Index) {</div>
+<div class="line"><a name="l02015"></a><span class="lineno"> 2015</span>   <span class="keywordtype">unsigned</span> Size = Array.<a class="code" href="classclang_1_1APValue.html#a277b8774c5003ce6510468363ec8be4c">getArraySize</a>();</div>
+<div class="line"><a name="l02016"></a><span class="lineno"> 2016</span>   assert(Index < Size);</div>
+<div class="line"><a name="l02017"></a><span class="lineno"> 2017</span> </div>
+<div class="line"><a name="l02018"></a><span class="lineno"> 2018</span>   <span class="comment">// Always at least double the number of elements for which we store a value.</span></div>
+<div class="line"><a name="l02019"></a><span class="lineno"> 2019</span>   <span class="keywordtype">unsigned</span> OldElts = Array.<a class="code" href="classclang_1_1APValue.html#a0bff5401f2459cbccb49645e02ed3574">getArrayInitializedElts</a>();</div>
+<div class="line"><a name="l02020"></a><span class="lineno"> 2020</span>   <span class="keywordtype">unsigned</span> NewElts = std::max(Index+1, OldElts * 2);</div>
+<div class="line"><a name="l02021"></a><span class="lineno"> 2021</span>   NewElts = std::min(Size, std::max(NewElts, 8u));</div>
+<div class="line"><a name="l02022"></a><span class="lineno"> 2022</span> </div>
+<div class="line"><a name="l02023"></a><span class="lineno"> 2023</span>   <span class="comment">// Copy the data across.</span></div>
+<div class="line"><a name="l02024"></a><span class="lineno"> 2024</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> NewValue(<a class="code" href="structclang_1_1APValue_1_1UninitArray.html">APValue::UninitArray</a>(), NewElts, Size);</div>
+<div class="line"><a name="l02025"></a><span class="lineno"> 2025</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0; I != OldElts; ++I)</div>
+<div class="line"><a name="l02026"></a><span class="lineno"> 2026</span>     NewValue.<a class="code" href="classclang_1_1APValue.html#ab9907033318713dc62ac1b7e96024286">getArrayInitializedElt</a>(I).<a class="code" href="classclang_1_1APValue.html#a1308315d5c29ef83a7b2159dbc63882f" title="Swaps the contents of this and the given APValue.">swap</a>(Array.<a class="code" href="classclang_1_1APValue.html#ab9907033318713dc62ac1b7e96024286">getArrayInitializedElt</a>(I));</div>
+<div class="line"><a name="l02027"></a><span class="lineno"> 2027</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = OldElts; I != NewElts; ++I)</div>
+<div class="line"><a name="l02028"></a><span class="lineno"> 2028</span>     NewValue.<a class="code" href="classclang_1_1APValue.html#ab9907033318713dc62ac1b7e96024286">getArrayInitializedElt</a>(I) = Array.<a class="code" href="classclang_1_1APValue.html#a4c350800ac6893a481fdf15c4406d170">getArrayFiller</a>();</div>
+<div class="line"><a name="l02029"></a><span class="lineno"> 2029</span>   <span class="keywordflow">if</span> (NewValue.<a class="code" href="classclang_1_1APValue.html#af74d3b5c9c1d3fc82d17a4d9422ba96c">hasArrayFiller</a>())</div>
+<div class="line"><a name="l02030"></a><span class="lineno"> 2030</span>     NewValue.<a class="code" href="classclang_1_1APValue.html#a4c350800ac6893a481fdf15c4406d170">getArrayFiller</a>() = Array.<a class="code" href="classclang_1_1APValue.html#a4c350800ac6893a481fdf15c4406d170">getArrayFiller</a>();</div>
+<div class="line"><a name="l02031"></a><span class="lineno"> 2031</span>   Array.<a class="code" href="classclang_1_1APValue.html#a1308315d5c29ef83a7b2159dbc63882f" title="Swaps the contents of this and the given APValue.">swap</a>(NewValue);</div>
+<div class="line"><a name="l02032"></a><span class="lineno"> 2032</span> }</div>
+<div class="line"><a name="l02033"></a><span class="lineno"> 2033</span> <span class="comment"></span></div>
+<div class="line"><a name="l02034"></a><span class="lineno"> 2034</span> <span class="comment">/// Kinds of access we can perform on an object, for diagnostics.</span></div>
+<div class="line"><a name="l02035"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620"> 2035</a></span> <span class="comment"></span><span class="keyword">enum</span> <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> {</div>
+<div class="line"><a name="l02036"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794"> 2036</a></span>   <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a>,</div>
+<div class="line"><a name="l02037"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91937a72e9fc354087f700fce82eb1f6"> 2037</a></span>   <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91937a72e9fc354087f700fce82eb1f6">AK_Assign</a>,</div>
+<div class="line"><a name="l02038"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a57e73c66d52f7bceb05543398cd1447c"> 2038</a></span>   <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a57e73c66d52f7bceb05543398cd1447c">AK_Increment</a>,</div>
+<div class="line"><a name="l02039"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91f1bb20a1fe0599ebf457b43a8eeb73"> 2039</a></span>   <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91f1bb20a1fe0599ebf457b43a8eeb73">AK_Decrement</a></div>
+<div class="line"><a name="l02040"></a><span class="lineno"> 2040</span> };</div>
+<div class="line"><a name="l02041"></a><span class="lineno"> 2041</span> <span class="comment"></span></div>
+<div class="line"><a name="l02042"></a><span class="lineno"> 2042</span> <span class="comment">/// A handle to a complete object (an object that is not a subobject of</span></div>
+<div class="line"><a name="l02043"></a><span class="lineno"> 2043</span> <span class="comment">/// another object).</span></div>
+<div class="line"><a name="l02044"></a><span class="lineno"><a class="code" href="structCompleteObject.html"> 2044</a></span> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structCompleteObject.html">CompleteObject</a> {<span class="comment"></span></div>
+<div class="line"><a name="l02045"></a><span class="lineno"> 2045</span> <span class="comment">  /// The value of the complete object.</span></div>
+<div class="line"><a name="l02046"></a><span class="lineno"><a class="code" href="structCompleteObject.html#a45efa988b57475320e6fdec259b40193"> 2046</a></span> <span class="comment"></span>  <a class="code" href="classclang_1_1APValue.html">APValue</a> *<a class="code" href="structCompleteObject.html#a45efa988b57475320e6fdec259b40193" title="The value of the complete object.">Value</a>;<span class="comment"></span></div>
+<div class="line"><a name="l02047"></a><span class="lineno"> 2047</span> <span class="comment">  /// The type of the complete object.</span></div>
+<div class="line"><a name="l02048"></a><span class="lineno"><a class="code" href="structCompleteObject.html#a3efa8c13a025594d17983454e0b2e8db"> 2048</a></span> <span class="comment"></span>  <a class="code" href="classclang_1_1QualType.html">QualType</a> <a class="code" href="structCompleteObject.html#a3efa8c13a025594d17983454e0b2e8db" title="The type of the complete object.">Type</a>;</div>
+<div class="line"><a name="l02049"></a><span class="lineno"> 2049</span> </div>
+<div class="line"><a name="l02050"></a><span class="lineno"><a class="code" href="structCompleteObject.html#ab8be7ea390a7ad52f4733bbf98eed973"> 2050</a></span>   <a class="code" href="structCompleteObject.html#ab8be7ea390a7ad52f4733bbf98eed973">CompleteObject</a>() : Value(0) {}</div>
+<div class="line"><a name="l02051"></a><span class="lineno"><a class="code" href="structCompleteObject.html#aa5fa51c355a293cfb51b95aa6a0a4c9f"> 2051</a></span>   <a class="code" href="structCompleteObject.html#ab8be7ea390a7ad52f4733bbf98eed973">CompleteObject</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> *Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> Type)</div>
+<div class="line"><a name="l02052"></a><span class="lineno"> 2052</span>       : Value(Value), Type(Type) {</div>
+<div class="line"><a name="l02053"></a><span class="lineno"> 2053</span>     assert(Value && <span class="stringliteral">"missing value for complete object"</span>);</div>
+<div class="line"><a name="l02054"></a><span class="lineno"> 2054</span>   }</div>
+<div class="line"><a name="l02055"></a><span class="lineno"> 2055</span> </div>
+<div class="line"><a name="l02056"></a><span class="lineno"><a class="code" href="structCompleteObject.html#a3e00f2bbd86aad50802f922245d52b5d"> 2056</a></span>   LLVM_EXPLICIT <span class="keyword">operator</span> <a class="code" href="stdbool_8h.html#abb452686968e48b67397da5f97445f5b">bool</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html#a45efa988b57475320e6fdec259b40193" title="The value of the complete object.">Value</a>; }</div>
+<div class="line"><a name="l02057"></a><span class="lineno"> 2057</span> };</div>
+<div class="line"><a name="l02058"></a><span class="lineno"> 2058</span> <span class="comment"></span></div>
+<div class="line"><a name="l02059"></a><span class="lineno"> 2059</span> <span class="comment">/// Find the designated sub-object of an rvalue.</span></div>
+<div class="line"><a name="l02060"></a><span class="lineno"> 2060</span> <span class="comment"></span><span class="keyword">template</span><<span class="keyword">typename</span> Sub<span class="keywordtype">object</span>Handler></div>
+<div class="line"><a name="l02061"></a><span class="lineno"> 2061</span> <span class="keyword">typename</span> SubobjectHandler::result_type</div>
+<div class="line"><a name="l02062"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a562d84a01846db3031124173995360dc"> 2062</a></span> <a class="code" href="ExprConstant_8cpp.html#a562d84a01846db3031124173995360dc" title="Find the designated sub-object of an rvalue.">findSubobject</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <span class="keyword">const</span> <a class="code" href="structCompleteObject.html">CompleteObject</a> &Obj,</div>
+<div class="line"><a name="l02063"></a><span class="lineno"> 2063</span>               <span class="keyword">const</span> SubobjectDesignator &Sub, SubobjectHandler &handler) {</div>
+<div class="line"><a name="l02064"></a><span class="lineno"> 2064</span>   <span class="keywordflow">if</span> (Sub.Invalid)</div>
+<div class="line"><a name="l02065"></a><span class="lineno"> 2065</span>     <span class="comment">// A diagnostic will have already been produced.</span></div>
+<div class="line"><a name="l02066"></a><span class="lineno"> 2066</span>     <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02067"></a><span class="lineno"> 2067</span>   <span class="keywordflow">if</span> (Sub.isOnePastTheEnd()) {</div>
+<div class="line"><a name="l02068"></a><span class="lineno"> 2068</span>     <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11)</div>
+<div class="line"><a name="l02069"></a><span class="lineno"> 2069</span>       Info.Diag(E, diag::note_constexpr_access_past_end)</div>
+<div class="line"><a name="l02070"></a><span class="lineno"> 2070</span>         << handler.AccessKind;</div>
+<div class="line"><a name="l02071"></a><span class="lineno"> 2071</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02072"></a><span class="lineno"> 2072</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02073"></a><span class="lineno"> 2073</span>     <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02074"></a><span class="lineno"> 2074</span>   }</div>
+<div class="line"><a name="l02075"></a><span class="lineno"> 2075</span> </div>
+<div class="line"><a name="l02076"></a><span class="lineno"> 2076</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> *O = Obj.<a class="code" href="structCompleteObject.html#a45efa988b57475320e6fdec259b40193" title="The value of the complete object.">Value</a>;</div>
+<div class="line"><a name="l02077"></a><span class="lineno"> 2077</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> ObjType = Obj.<a class="code" href="structCompleteObject.html#a3efa8c13a025594d17983454e0b2e8db" title="The type of the complete object.">Type</a>;</div>
+<div class="line"><a name="l02078"></a><span class="lineno"> 2078</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *LastField = 0;</div>
+<div class="line"><a name="l02079"></a><span class="lineno"> 2079</span> </div>
+<div class="line"><a name="l02080"></a><span class="lineno"> 2080</span>   <span class="comment">// Walk the designator's path to find the subobject.</span></div>
+<div class="line"><a name="l02081"></a><span class="lineno"> 2081</span>   <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = Sub.Entries.size(); <span class="comment">/**/</span>; ++I) {</div>
+<div class="line"><a name="l02082"></a><span class="lineno"> 2082</span>     <span class="keywordflow">if</span> (O-><a class="code" href="classclang_1_1APValue.html#a4717d55a23b4978d34a6f7c15b201336">isUninit</a>()) {</div>
+<div class="line"><a name="l02083"></a><span class="lineno"> 2083</span>       <span class="keywordflow">if</span> (!Info.checkingPotentialConstantExpression())</div>
+<div class="line"><a name="l02084"></a><span class="lineno"> 2084</span>         Info.Diag(E, diag::note_constexpr_access_uninit) << handler.AccessKind;</div>
+<div class="line"><a name="l02085"></a><span class="lineno"> 2085</span>       <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02086"></a><span class="lineno"> 2086</span>     }</div>
+<div class="line"><a name="l02087"></a><span class="lineno"> 2087</span> </div>
+<div class="line"><a name="l02088"></a><span class="lineno"> 2088</span>     <span class="keywordflow">if</span> (I == N) {</div>
+<div class="line"><a name="l02089"></a><span class="lineno"> 2089</span>       <span class="keywordflow">if</span> (!handler.found(*O, ObjType))</div>
+<div class="line"><a name="l02090"></a><span class="lineno"> 2090</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02091"></a><span class="lineno"> 2091</span> </div>
+<div class="line"><a name="l02092"></a><span class="lineno"> 2092</span>       <span class="comment">// If we modified a bit-field, truncate it to the right width.</span></div>
+<div class="line"><a name="l02093"></a><span class="lineno"> 2093</span>       <span class="keywordflow">if</span> (handler.AccessKind != <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a> &&</div>
+<div class="line"><a name="l02094"></a><span class="lineno"> 2094</span>           LastField && LastField-><a class="code" href="classclang_1_1FieldDecl.html#af8c123e193d426f26496c15e2f168a49" title="isBitfield - Determines whether this field is a bitfield.">isBitField</a>() &&</div>
+<div class="line"><a name="l02095"></a><span class="lineno"> 2095</span>           !<a class="code" href="ExprConstant_8cpp.html#a4bdc4aa6459c514bf8ae3ac16b99418b">truncateBitfieldValue</a>(Info, E, *O, LastField))</div>
+<div class="line"><a name="l02096"></a><span class="lineno"> 2096</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02097"></a><span class="lineno"> 2097</span> </div>
+<div class="line"><a name="l02098"></a><span class="lineno"> 2098</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02099"></a><span class="lineno"> 2099</span>     }</div>
+<div class="line"><a name="l02100"></a><span class="lineno"> 2100</span> </div>
+<div class="line"><a name="l02101"></a><span class="lineno"> 2101</span>     LastField = 0;</div>
+<div class="line"><a name="l02102"></a><span class="lineno"> 2102</span>     <span class="keywordflow">if</span> (ObjType-><a class="code" href="classclang_1_1Type.html#a53b83bd119ae77bc77e92dc69a8c8094">isArrayType</a>()) {</div>
+<div class="line"><a name="l02103"></a><span class="lineno"> 2103</span>       <span class="comment">// Next subobject is an array element.</span></div>
+<div class="line"><a name="l02104"></a><span class="lineno"> 2104</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1ConstantArrayType.html">ConstantArrayType</a> *CAT = Info.Ctx.getAsConstantArrayType(ObjType);</div>
+<div class="line"><a name="l02105"></a><span class="lineno"> 2105</span>       assert(CAT && <span class="stringliteral">"vla in literal type?"</span>);</div>
+<div class="line"><a name="l02106"></a><span class="lineno"> 2106</span>       uint64_t Index = Sub.Entries[I].ArrayIndex;</div>
+<div class="line"><a name="l02107"></a><span class="lineno"> 2107</span>       <span class="keywordflow">if</span> (CAT-><a class="code" href="classclang_1_1ConstantArrayType.html#add90924c309ad1f353431f2b63e9ba2b">getSize</a>().ule(Index)) {</div>
+<div class="line"><a name="l02108"></a><span class="lineno"> 2108</span>         <span class="comment">// Note, it should not be possible to form a pointer with a valid</span></div>
+<div class="line"><a name="l02109"></a><span class="lineno"> 2109</span>         <span class="comment">// designator which points more than one past the end of the array.</span></div>
+<div class="line"><a name="l02110"></a><span class="lineno"> 2110</span>         <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11)</div>
+<div class="line"><a name="l02111"></a><span class="lineno"> 2111</span>           Info.Diag(E, diag::note_constexpr_access_past_end)</div>
+<div class="line"><a name="l02112"></a><span class="lineno"> 2112</span>             << handler.AccessKind;</div>
+<div class="line"><a name="l02113"></a><span class="lineno"> 2113</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02114"></a><span class="lineno"> 2114</span>           Info.Diag(E);</div>
+<div class="line"><a name="l02115"></a><span class="lineno"> 2115</span>         <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02116"></a><span class="lineno"> 2116</span>       }</div>
+<div class="line"><a name="l02117"></a><span class="lineno"> 2117</span> </div>
+<div class="line"><a name="l02118"></a><span class="lineno"> 2118</span>       ObjType = CAT-><a class="code" href="classclang_1_1ArrayType.html#ad9681a11b43dc70a3c4db07d2a450d12">getElementType</a>();</div>
+<div class="line"><a name="l02119"></a><span class="lineno"> 2119</span> </div>
+<div class="line"><a name="l02120"></a><span class="lineno"> 2120</span>       <span class="comment">// An array object is represented as either an Array APValue or as an</span></div>
+<div class="line"><a name="l02121"></a><span class="lineno"> 2121</span>       <span class="comment">// LValue which refers to a string literal.</span></div>
+<div class="line"><a name="l02122"></a><span class="lineno"> 2122</span>       <span class="keywordflow">if</span> (O-><a class="code" href="classclang_1_1APValue.html#a19d5f3448e338717c176293db4857fde">isLValue</a>()) {</div>
+<div class="line"><a name="l02123"></a><span class="lineno"> 2123</span>         assert(I == N - 1 && <span class="stringliteral">"extracting subobject of character?"</span>);</div>
+<div class="line"><a name="l02124"></a><span class="lineno"> 2124</span>         assert(!O-><a class="code" href="classclang_1_1APValue.html#adcdc6e637be3a4640c16834941cf4cdd">hasLValuePath</a>() || O-><a class="code" href="classclang_1_1APValue.html#aabeff46bf841666ff0eecfbdfd80c9d7">getLValuePath</a>().empty());</div>
+<div class="line"><a name="l02125"></a><span class="lineno"> 2125</span>         <span class="keywordflow">if</span> (handler.AccessKind != <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a>)</div>
+<div class="line"><a name="l02126"></a><span class="lineno"> 2126</span>           <a class="code" href="ExprConstant_8cpp.html#aabc09fb04434272f654c281704b8b35a">expandStringLiteral</a>(Info, O-><a class="code" href="classclang_1_1APValue.html#a7b2bb5423a2a6d6465130045072c34b2">getLValueBase</a>().get<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *>(),</div>
+<div class="line"><a name="l02127"></a><span class="lineno"> 2127</span>                               *O);</div>
+<div class="line"><a name="l02128"></a><span class="lineno"> 2128</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02129"></a><span class="lineno"> 2129</span>           <span class="keywordflow">return</span> handler.foundString(*O, ObjType, Index);</div>
+<div class="line"><a name="l02130"></a><span class="lineno"> 2130</span>       }</div>
+<div class="line"><a name="l02131"></a><span class="lineno"> 2131</span> </div>
+<div class="line"><a name="l02132"></a><span class="lineno"> 2132</span>       <span class="keywordflow">if</span> (O-><a class="code" href="classclang_1_1APValue.html#a0bff5401f2459cbccb49645e02ed3574">getArrayInitializedElts</a>() > Index)</div>
+<div class="line"><a name="l02133"></a><span class="lineno"> 2133</span>         O = &O-><a class="code" href="classclang_1_1APValue.html#ab9907033318713dc62ac1b7e96024286">getArrayInitializedElt</a>(Index);</div>
+<div class="line"><a name="l02134"></a><span class="lineno"> 2134</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (handler.AccessKind != <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a>) {</div>
+<div class="line"><a name="l02135"></a><span class="lineno"> 2135</span>         <a class="code" href="ExprConstant_8cpp.html#a8fecd0e4140e52e58fef137a5283f11e">expandArray</a>(*O, Index);</div>
+<div class="line"><a name="l02136"></a><span class="lineno"> 2136</span>         O = &O-><a class="code" href="classclang_1_1APValue.html#ab9907033318713dc62ac1b7e96024286">getArrayInitializedElt</a>(Index);</div>
+<div class="line"><a name="l02137"></a><span class="lineno"> 2137</span>       } <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02138"></a><span class="lineno"> 2138</span>         O = &O-><a class="code" href="classclang_1_1APValue.html#a4c350800ac6893a481fdf15c4406d170">getArrayFiller</a>();</div>
+<div class="line"><a name="l02139"></a><span class="lineno"> 2139</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ObjType-><a class="code" href="classclang_1_1Type.html#a292ac10726adf5426212b5c6ee14d9bb">isAnyComplexType</a>()) {</div>
+<div class="line"><a name="l02140"></a><span class="lineno"> 2140</span>       <span class="comment">// Next subobject is a complex number.</span></div>
+<div class="line"><a name="l02141"></a><span class="lineno"> 2141</span>       uint64_t Index = Sub.Entries[I].ArrayIndex;</div>
+<div class="line"><a name="l02142"></a><span class="lineno"> 2142</span>       <span class="keywordflow">if</span> (Index > 1) {</div>
+<div class="line"><a name="l02143"></a><span class="lineno"> 2143</span>         <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11)</div>
+<div class="line"><a name="l02144"></a><span class="lineno"> 2144</span>           Info.Diag(E, diag::note_constexpr_access_past_end)</div>
+<div class="line"><a name="l02145"></a><span class="lineno"> 2145</span>             << handler.AccessKind;</div>
+<div class="line"><a name="l02146"></a><span class="lineno"> 2146</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02147"></a><span class="lineno"> 2147</span>           Info.Diag(E);</div>
+<div class="line"><a name="l02148"></a><span class="lineno"> 2148</span>         <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02149"></a><span class="lineno"> 2149</span>       }</div>
+<div class="line"><a name="l02150"></a><span class="lineno"> 2150</span> </div>
+<div class="line"><a name="l02151"></a><span class="lineno"> 2151</span>       <span class="keywordtype">bool</span> WasConstQualified = ObjType.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>();</div>
+<div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>       ObjType = ObjType-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1ComplexType.html">ComplexType</a>>()-><a class="code" href="SemaChecking_8cpp.html#a9f6c9a015ec06db5f86672533b582823">getElementType</a>();</div>
+<div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>       <span class="keywordflow">if</span> (WasConstQualified)</div>
+<div class="line"><a name="l02154"></a><span class="lineno"> 2154</span>         ObjType.<a class="code" href="classclang_1_1QualType.html#a43a8b5d4a9d63c319ad978252426379a" title="addConst - add the specified type qualifier to this QualType.">addConst</a>();</div>
+<div class="line"><a name="l02155"></a><span class="lineno"> 2155</span> </div>
+<div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>       assert(I == N - 1 && <span class="stringliteral">"extracting subobject of scalar?"</span>);</div>
+<div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>       <span class="keywordflow">if</span> (O-><a class="code" href="classclang_1_1APValue.html#a62db17663868ff1c6588e5ac7df43106">isComplexInt</a>()) {</div>
+<div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>         <span class="keywordflow">return</span> handler.found(Index ? O-><a class="code" href="classclang_1_1APValue.html#a96f59e7d6f7d451e0c2498f69a0551b9">getComplexIntImag</a>()</div>
+<div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>                                    : O-><a class="code" href="classclang_1_1APValue.html#a66e83a13553ec7be07e881a723ed2555">getComplexIntReal</a>(), ObjType);</div>
+<div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>         assert(O-><a class="code" href="classclang_1_1APValue.html#ae528b09bef3c0a0ee0a04b75f3585278">isComplexFloat</a>());</div>
+<div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>         <span class="keywordflow">return</span> handler.found(Index ? O-><a class="code" href="classclang_1_1APValue.html#aacb7fee7e82d960975225ac6dc729a45">getComplexFloatImag</a>()</div>
+<div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>                                    : O-><a class="code" href="classclang_1_1APValue.html#adc48962e4b1f10ede59a8b8e77988045">getComplexFloatReal</a>(), ObjType);</div>
+<div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>       }</div>
+<div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *Field = getAsField(Sub.Entries[I])) {</div>
+<div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>       <span class="keywordflow">if</span> (Field->isMutable() && handler.AccessKind == <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a>) {</div>
+<div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>         Info.Diag(E, diag::note_constexpr_ltor_mutable, 1)</div>
+<div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>           << Field;</div>
+<div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>         Info.Note(Field->getLocation(), diag::note_declared_at);</div>
+<div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>         <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>       }</div>
+<div class="line"><a name="l02172"></a><span class="lineno"> 2172</span> </div>
+<div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>       <span class="comment">// Next subobject is a class, struct or union field.</span></div>
+<div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>       <a class="code" href="classclang_1_1RecordDecl.html">RecordDecl</a> *RD = ObjType-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1RecordType.html">RecordType</a>>()->getDecl();</div>
+<div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>       <span class="keywordflow">if</span> (RD-><a class="code" href="classclang_1_1TagDecl.html#a76233fd9169fc9bfa27603ad5477f02a">isUnion</a>()) {</div>
+<div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *UnionField = O-><a class="code" href="classclang_1_1APValue.html#aa8840f6a3a28e1939f9cf3ece9b9b406">getUnionField</a>();</div>
+<div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>         <span class="keywordflow">if</span> (!UnionField ||</div>
+<div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>             UnionField-><a class="code" href="classclang_1_1FieldDecl.html#a357a7fa6c5fbf9f48db774a1d2102455" title="Retrieves the canonical declaration of this field.">getCanonicalDecl</a>() != Field-><a class="code" href="classclang_1_1FieldDecl.html#a357a7fa6c5fbf9f48db774a1d2102455" title="Retrieves the canonical declaration of this field.">getCanonicalDecl</a>()) {</div>
+<div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>           Info.Diag(E, diag::note_constexpr_access_inactive_union_member)</div>
+<div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>             << handler.AccessKind << Field << !UnionField << UnionField;</div>
+<div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>           <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>         }</div>
+<div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>         O = &O-><a class="code" href="classclang_1_1APValue.html#a14ddc0488234c33e98f71fc269473e6e">getUnionValue</a>();</div>
+<div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>       } <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>         O = &O-><a class="code" href="classclang_1_1APValue.html#aa09684bba5319f42788e740c0fb08163">getStructField</a>(Field->getFieldIndex());</div>
+<div class="line"><a name="l02186"></a><span class="lineno"> 2186</span> </div>
+<div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>       <span class="keywordtype">bool</span> WasConstQualified = ObjType.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>();</div>
+<div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>       ObjType = Field->getType();</div>
+<div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>       <span class="keywordflow">if</span> (WasConstQualified && !Field->isMutable())</div>
+<div class="line"><a name="l02190"></a><span class="lineno"> 2190</span>         ObjType.<a class="code" href="classclang_1_1QualType.html#a43a8b5d4a9d63c319ad978252426379a" title="addConst - add the specified type qualifier to this QualType.">addConst</a>();</div>
+<div class="line"><a name="l02191"></a><span class="lineno"> 2191</span> </div>
+<div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>       <span class="keywordflow">if</span> (ObjType.<a class="code" href="classclang_1_1QualType.html#ace32f56eadc42b2bcf235fccd5a571af" title="Determine whether this type is volatile-qualified.">isVolatileQualified</a>()) {</div>
+<div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>         <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus) {</div>
+<div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>           <span class="comment">// FIXME: Include a description of the path to the volatile subobject.</span></div>
+<div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>           Info.Diag(E, diag::note_constexpr_access_volatile_obj, 1)</div>
+<div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>             << handler.AccessKind << 2 << Field;</div>
+<div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>           Info.Note(Field->getLocation(), diag::note_declared_at);</div>
+<div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>         } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>           Info.Diag(E, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>         }</div>
+<div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>         <span class="keywordflow">return</span> handler.failed();</div>
+<div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>       }</div>
+<div class="line"><a name="l02203"></a><span class="lineno"> 2203</span> </div>
+<div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>       LastField = Field;</div>
+<div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>       <span class="comment">// Next subobject is a base class.</span></div>
+<div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Derived = ObjType-><a class="code" href="classclang_1_1Type.html#a7dc6c3dbc192ad98871c3cc484376b9a" title="Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...">getAsCXXRecordDecl</a>();</div>
+<div class="line"><a name="l02208"></a><span class="lineno"> 2208</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Base = getAsBaseClass(Sub.Entries[I]);</div>
+<div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>       O = &O-><a class="code" href="classclang_1_1APValue.html#a67412e5e61937c49c415e7460160cb81">getStructBase</a>(<a class="code" href="ExprConstant_8cpp.html#a9796e3a3820855b660ebf451cd0ee78d">getBaseIndex</a>(Derived, Base));</div>
+<div class="line"><a name="l02210"></a><span class="lineno"> 2210</span> </div>
+<div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>       <span class="keywordtype">bool</span> WasConstQualified = ObjType.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>();</div>
+<div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>       ObjType = Info.Ctx.getRecordType(Base);</div>
+<div class="line"><a name="l02213"></a><span class="lineno"> 2213</span>       <span class="keywordflow">if</span> (WasConstQualified)</div>
+<div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>         ObjType.<a class="code" href="classclang_1_1QualType.html#a43a8b5d4a9d63c319ad978252426379a" title="addConst - add the specified type qualifier to this QualType.">addConst</a>();</div>
+<div class="line"><a name="l02215"></a><span class="lineno"> 2215</span>     }</div>
+<div class="line"><a name="l02216"></a><span class="lineno"> 2216</span>   }</div>
+<div class="line"><a name="l02217"></a><span class="lineno"> 2217</span> }</div>
+<div class="line"><a name="l02218"></a><span class="lineno"> 2218</span> </div>
+<div class="line"><a name="l02219"></a><span class="lineno"> 2219</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l02220"></a><span class="lineno"> 2220</span> <span class="keyword">struct </span>ExtractSubobjectHandler {</div>
+<div class="line"><a name="l02221"></a><span class="lineno"> 2221</span>   EvalInfo &Info;</div>
+<div class="line"><a name="l02222"></a><span class="lineno"> 2222</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result;</div>
+<div class="line"><a name="l02223"></a><span class="lineno"> 2223</span> </div>
+<div class="line"><a name="l02224"></a><span class="lineno"> 2224</span>   <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a> = <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a>;</div>
+<div class="line"><a name="l02225"></a><span class="lineno"> 2225</span> </div>
+<div class="line"><a name="l02226"></a><span class="lineno"> 2226</span>   <span class="keyword">typedef</span> <span class="keywordtype">bool</span> result_type;</div>
+<div class="line"><a name="l02227"></a><span class="lineno"> 2227</span>   <span class="keywordtype">bool</span> failed() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l02228"></a><span class="lineno"> 2228</span>   <span class="keywordtype">bool</span> found(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02229"></a><span class="lineno"> 2229</span>     Result = Subobj;</div>
+<div class="line"><a name="l02230"></a><span class="lineno"> 2230</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02231"></a><span class="lineno"> 2231</span>   }</div>
+<div class="line"><a name="l02232"></a><span class="lineno"> 2232</span>   <span class="keywordtype">bool</span> found(APSInt &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02233"></a><span class="lineno"> 2233</span>     Result = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Value);</div>
+<div class="line"><a name="l02234"></a><span class="lineno"> 2234</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02235"></a><span class="lineno"> 2235</span>   }</div>
+<div class="line"><a name="l02236"></a><span class="lineno"> 2236</span>   <span class="keywordtype">bool</span> found(APFloat &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02237"></a><span class="lineno"> 2237</span>     Result = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Value);</div>
+<div class="line"><a name="l02238"></a><span class="lineno"> 2238</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02239"></a><span class="lineno"> 2239</span>   }</div>
+<div class="line"><a name="l02240"></a><span class="lineno"> 2240</span>   <span class="keywordtype">bool</span> foundString(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType, uint64_t Character) {</div>
+<div class="line"><a name="l02241"></a><span class="lineno"> 2241</span>     Result = <a class="code" href="classclang_1_1APValue.html">APValue</a>(<a class="code" href="ExprConstant_8cpp.html#a71f0246aa737f5be3f256cedbb14e038" title="Extract the value of a character from a string literal.">extractStringLiteralCharacter</a>(</div>
+<div class="line"><a name="l02242"></a><span class="lineno"> 2242</span>         Info, Subobj.<a class="code" href="classclang_1_1APValue.html#a7b2bb5423a2a6d6465130045072c34b2">getLValueBase</a>().get<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *>(), Character));</div>
+<div class="line"><a name="l02243"></a><span class="lineno"> 2243</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02244"></a><span class="lineno"> 2244</span>   }</div>
+<div class="line"><a name="l02245"></a><span class="lineno"> 2245</span> };</div>
+<div class="line"><a name="l02246"></a><span class="lineno"> 2246</span> } <span class="comment">// end anonymous namespace</span></div>
+<div class="line"><a name="l02247"></a><span class="lineno"> 2247</span> </div>
+<div class="line"><a name="l02248"></a><span class="lineno"> 2248</span> <span class="keyword">const</span> <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">ExtractSubobjectHandler::AccessKind</a>;</div>
+<div class="line"><a name="l02249"></a><span class="lineno"> 2249</span> <span class="comment"></span></div>
+<div class="line"><a name="l02250"></a><span class="lineno"> 2250</span> <span class="comment">/// Extract the designated sub-object of an rvalue.</span></div>
+<div class="line"><a name="l02251"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#aa221812702841f924221a71fea917e86"> 2251</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#aa221812702841f924221a71fea917e86" title="Extract the designated sub-object of an rvalue.">extractSubobject</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l02252"></a><span class="lineno"> 2252</span>                              <span class="keyword">const</span> <a class="code" href="structCompleteObject.html">CompleteObject</a> &Obj,</div>
+<div class="line"><a name="l02253"></a><span class="lineno"> 2253</span>                              <span class="keyword">const</span> SubobjectDesignator &Sub,</div>
+<div class="line"><a name="l02254"></a><span class="lineno"> 2254</span>                              <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result) {</div>
+<div class="line"><a name="l02255"></a><span class="lineno"> 2255</span>   ExtractSubobjectHandler Handler = { Info, Result };</div>
+<div class="line"><a name="l02256"></a><span class="lineno"> 2256</span>   <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a562d84a01846db3031124173995360dc" title="Find the designated sub-object of an rvalue.">findSubobject</a>(Info, E, Obj, Sub, Handler);</div>
+<div class="line"><a name="l02257"></a><span class="lineno"> 2257</span> }</div>
+<div class="line"><a name="l02258"></a><span class="lineno"> 2258</span> </div>
+<div class="line"><a name="l02259"></a><span class="lineno"> 2259</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l02260"></a><span class="lineno"> 2260</span> <span class="keyword">struct </span>ModifySubobjectHandler {</div>
+<div class="line"><a name="l02261"></a><span class="lineno"> 2261</span>   EvalInfo &Info;</div>
+<div class="line"><a name="l02262"></a><span class="lineno"> 2262</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> &NewVal;</div>
+<div class="line"><a name="l02263"></a><span class="lineno"> 2263</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E;</div>
+<div class="line"><a name="l02264"></a><span class="lineno"> 2264</span> </div>
+<div class="line"><a name="l02265"></a><span class="lineno"> 2265</span>   <span class="keyword">typedef</span> <span class="keywordtype">bool</span> result_type;</div>
+<div class="line"><a name="l02266"></a><span class="lineno"> 2266</span>   <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a> = <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91937a72e9fc354087f700fce82eb1f6">AK_Assign</a>;</div>
+<div class="line"><a name="l02267"></a><span class="lineno"> 2267</span> </div>
+<div class="line"><a name="l02268"></a><span class="lineno"> 2268</span>   <span class="keywordtype">bool</span> checkConst(<a class="code" href="classclang_1_1QualType.html">QualType</a> QT) {</div>
+<div class="line"><a name="l02269"></a><span class="lineno"> 2269</span>     <span class="comment">// Assigning to a const object has undefined behavior.</span></div>
+<div class="line"><a name="l02270"></a><span class="lineno"> 2270</span>     <span class="keywordflow">if</span> (QT.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>()) {</div>
+<div class="line"><a name="l02271"></a><span class="lineno"> 2271</span>       Info.Diag(E, diag::note_constexpr_modify_const_type) << QT;</div>
+<div class="line"><a name="l02272"></a><span class="lineno"> 2272</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02273"></a><span class="lineno"> 2273</span>     }</div>
+<div class="line"><a name="l02274"></a><span class="lineno"> 2274</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02275"></a><span class="lineno"> 2275</span>   }</div>
+<div class="line"><a name="l02276"></a><span class="lineno"> 2276</span> </div>
+<div class="line"><a name="l02277"></a><span class="lineno"> 2277</span>   <span class="keywordtype">bool</span> failed() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l02278"></a><span class="lineno"> 2278</span>   <span class="keywordtype">bool</span> found(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02279"></a><span class="lineno"> 2279</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02280"></a><span class="lineno"> 2280</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02281"></a><span class="lineno"> 2281</span>     <span class="comment">// We've been given ownership of NewVal, so just swap it in.</span></div>
+<div class="line"><a name="l02282"></a><span class="lineno"> 2282</span>     Subobj.<a class="code" href="classclang_1_1APValue.html#a1308315d5c29ef83a7b2159dbc63882f" title="Swaps the contents of this and the given APValue.">swap</a>(NewVal);</div>
+<div class="line"><a name="l02283"></a><span class="lineno"> 2283</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02284"></a><span class="lineno"> 2284</span>   }</div>
+<div class="line"><a name="l02285"></a><span class="lineno"> 2285</span>   <span class="keywordtype">bool</span> found(APSInt &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02286"></a><span class="lineno"> 2286</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02287"></a><span class="lineno"> 2287</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02288"></a><span class="lineno"> 2288</span>     <span class="keywordflow">if</span> (!NewVal.isInt()) {</div>
+<div class="line"><a name="l02289"></a><span class="lineno"> 2289</span>       <span class="comment">// Maybe trying to write a cast pointer value into a complex?</span></div>
+<div class="line"><a name="l02290"></a><span class="lineno"> 2290</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02291"></a><span class="lineno"> 2291</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02292"></a><span class="lineno"> 2292</span>     }</div>
+<div class="line"><a name="l02293"></a><span class="lineno"> 2293</span>     Value = NewVal.getInt();</div>
+<div class="line"><a name="l02294"></a><span class="lineno"> 2294</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02295"></a><span class="lineno"> 2295</span>   }</div>
+<div class="line"><a name="l02296"></a><span class="lineno"> 2296</span>   <span class="keywordtype">bool</span> found(APFloat &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02297"></a><span class="lineno"> 2297</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02298"></a><span class="lineno"> 2298</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02299"></a><span class="lineno"> 2299</span>     Value = NewVal.getFloat();</div>
+<div class="line"><a name="l02300"></a><span class="lineno"> 2300</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02301"></a><span class="lineno"> 2301</span>   }</div>
+<div class="line"><a name="l02302"></a><span class="lineno"> 2302</span>   <span class="keywordtype">bool</span> foundString(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType, uint64_t Character) {</div>
+<div class="line"><a name="l02303"></a><span class="lineno"> 2303</span>     llvm_unreachable(<span class="stringliteral">"shouldn't encounter string elements with ExpandArrays"</span>);</div>
+<div class="line"><a name="l02304"></a><span class="lineno"> 2304</span>   }</div>
+<div class="line"><a name="l02305"></a><span class="lineno"> 2305</span> };</div>
+<div class="line"><a name="l02306"></a><span class="lineno"> 2306</span> } <span class="comment">// end anonymous namespace</span></div>
+<div class="line"><a name="l02307"></a><span class="lineno"> 2307</span> </div>
+<div class="line"><a name="l02308"></a><span class="lineno"> 2308</span> <span class="keyword">const</span> <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">ModifySubobjectHandler::AccessKind</a>;</div>
+<div class="line"><a name="l02309"></a><span class="lineno"> 2309</span> <span class="comment"></span></div>
+<div class="line"><a name="l02310"></a><span class="lineno"> 2310</span> <span class="comment">/// Update the designated sub-object of an rvalue to the given value.</span></div>
+<div class="line"><a name="l02311"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a72b7afbf0d148bada0ce35ecbd53b938"> 2311</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a72b7afbf0d148bada0ce35ecbd53b938" title="Update the designated sub-object of an rvalue to the given value.">modifySubobject</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l02312"></a><span class="lineno"> 2312</span>                             <span class="keyword">const</span> <a class="code" href="structCompleteObject.html">CompleteObject</a> &Obj,</div>
+<div class="line"><a name="l02313"></a><span class="lineno"> 2313</span>                             <span class="keyword">const</span> SubobjectDesignator &Sub,</div>
+<div class="line"><a name="l02314"></a><span class="lineno"> 2314</span>                             <a class="code" href="classclang_1_1APValue.html">APValue</a> &NewVal) {</div>
+<div class="line"><a name="l02315"></a><span class="lineno"> 2315</span>   ModifySubobjectHandler Handler = { Info, NewVal, E };</div>
+<div class="line"><a name="l02316"></a><span class="lineno"> 2316</span>   <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a562d84a01846db3031124173995360dc" title="Find the designated sub-object of an rvalue.">findSubobject</a>(Info, E, Obj, Sub, Handler);</div>
+<div class="line"><a name="l02317"></a><span class="lineno"> 2317</span> }</div>
+<div class="line"><a name="l02318"></a><span class="lineno"> 2318</span> <span class="comment"></span></div>
+<div class="line"><a name="l02319"></a><span class="lineno"> 2319</span> <span class="comment">/// Find the position where two subobject designators diverge, or equivalently</span></div>
+<div class="line"><a name="l02320"></a><span class="lineno"> 2320</span> <span class="comment">/// the length of the common initial subsequence.</span></div>
+<div class="line"><a name="l02321"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a93c4bcb6f31da0783815eb28bde0fdcc"> 2321</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">unsigned</span> <a class="code" href="ExprConstant_8cpp.html#a93c4bcb6f31da0783815eb28bde0fdcc" title="Find the position where two subobject designators diverge, or equivalently the length of the common i...">FindDesignatorMismatch</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> ObjType,</div>
+<div class="line"><a name="l02322"></a><span class="lineno"> 2322</span>                                        <span class="keyword">const</span> SubobjectDesignator &A,</div>
+<div class="line"><a name="l02323"></a><span class="lineno"> 2323</span>                                        <span class="keyword">const</span> SubobjectDesignator &B,</div>
+<div class="line"><a name="l02324"></a><span class="lineno"> 2324</span>                                        <span class="keywordtype">bool</span> &WasArrayIndex) {</div>
+<div class="line"><a name="l02325"></a><span class="lineno"> 2325</span>   <span class="keywordtype">unsigned</span> I = 0, N = std::min(A.Entries.size(), B.Entries.size());</div>
+<div class="line"><a name="l02326"></a><span class="lineno"> 2326</span>   <span class="keywordflow">for</span> (<span class="comment">/**/</span>; I != N; ++I) {</div>
+<div class="line"><a name="l02327"></a><span class="lineno"> 2327</span>     <span class="keywordflow">if</span> (!ObjType.<a class="code" href="classclang_1_1QualType.html#a8f87f58000490ad01cd09add1f27d7ac" title="isNull - Return true if this QualType doesn't point to a type yet.">isNull</a>() &&</div>
+<div class="line"><a name="l02328"></a><span class="lineno"> 2328</span>         (ObjType-><a class="code" href="classclang_1_1Type.html#a53b83bd119ae77bc77e92dc69a8c8094">isArrayType</a>() || ObjType-><a class="code" href="classclang_1_1Type.html#a292ac10726adf5426212b5c6ee14d9bb">isAnyComplexType</a>())) {</div>
+<div class="line"><a name="l02329"></a><span class="lineno"> 2329</span>       <span class="comment">// Next subobject is an array element.</span></div>
+<div class="line"><a name="l02330"></a><span class="lineno"> 2330</span>       <span class="keywordflow">if</span> (A.Entries[I].ArrayIndex != B.Entries[I].ArrayIndex) {</div>
+<div class="line"><a name="l02331"></a><span class="lineno"> 2331</span>         WasArrayIndex = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02332"></a><span class="lineno"> 2332</span>         <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l02333"></a><span class="lineno"> 2333</span>       }</div>
+<div class="line"><a name="l02334"></a><span class="lineno"> 2334</span>       <span class="keywordflow">if</span> (ObjType-><a class="code" href="classclang_1_1Type.html#a292ac10726adf5426212b5c6ee14d9bb">isAnyComplexType</a>())</div>
+<div class="line"><a name="l02335"></a><span class="lineno"> 2335</span>         ObjType = ObjType-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1ComplexType.html">ComplexType</a>>()-><a class="code" href="classclang_1_1ComplexType.html#a003ef818ba80a0004dd20256766803a6">getElementType</a>();</div>
+<div class="line"><a name="l02336"></a><span class="lineno"> 2336</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02337"></a><span class="lineno"> 2337</span>         ObjType = ObjType-><a class="code" href="classclang_1_1Type.html#a9bd7d46c52735e49f430dd4f68d32e5d">castAsArrayTypeUnsafe</a>()-><a class="code" href="classclang_1_1ArrayType.html#ad9681a11b43dc70a3c4db07d2a450d12">getElementType</a>();</div>
+<div class="line"><a name="l02338"></a><span class="lineno"> 2338</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02339"></a><span class="lineno"> 2339</span>       <span class="keywordflow">if</span> (A.Entries[I].BaseOrMember != B.Entries[I].BaseOrMember) {</div>
+<div class="line"><a name="l02340"></a><span class="lineno"> 2340</span>         WasArrayIndex = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02341"></a><span class="lineno"> 2341</span>         <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l02342"></a><span class="lineno"> 2342</span>       }</div>
+<div class="line"><a name="l02343"></a><span class="lineno"> 2343</span>       <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *FD = getAsField(A.Entries[I]))</div>
+<div class="line"><a name="l02344"></a><span class="lineno"> 2344</span>         <span class="comment">// Next subobject is a field.</span></div>
+<div class="line"><a name="l02345"></a><span class="lineno"> 2345</span>         ObjType = FD->getType();</div>
+<div class="line"><a name="l02346"></a><span class="lineno"> 2346</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02347"></a><span class="lineno"> 2347</span>         <span class="comment">// Next subobject is a base class.</span></div>
+<div class="line"><a name="l02348"></a><span class="lineno"> 2348</span>         ObjType = <a class="code" href="classclang_1_1QualType.html">QualType</a>();</div>
+<div class="line"><a name="l02349"></a><span class="lineno"> 2349</span>     }</div>
+<div class="line"><a name="l02350"></a><span class="lineno"> 2350</span>   }</div>
+<div class="line"><a name="l02351"></a><span class="lineno"> 2351</span>   WasArrayIndex = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02352"></a><span class="lineno"> 2352</span>   <span class="keywordflow">return</span> I;</div>
+<div class="line"><a name="l02353"></a><span class="lineno"> 2353</span> }</div>
+<div class="line"><a name="l02354"></a><span class="lineno"> 2354</span> <span class="comment"></span></div>
+<div class="line"><a name="l02355"></a><span class="lineno"> 2355</span> <span class="comment">/// Determine whether the given subobject designators refer to elements of the</span></div>
+<div class="line"><a name="l02356"></a><span class="lineno"> 2356</span> <span class="comment">/// same array object.</span></div>
+<div class="line"><a name="l02357"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a5425b0e012e9f2454678e3789778369c"> 2357</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a5425b0e012e9f2454678e3789778369c">AreElementsOfSameArray</a>(<a class="code" href="classclang_1_1QualType.html">QualType</a> ObjType,</div>
+<div class="line"><a name="l02358"></a><span class="lineno"> 2358</span>                                    <span class="keyword">const</span> SubobjectDesignator &A,</div>
+<div class="line"><a name="l02359"></a><span class="lineno"> 2359</span>                                    <span class="keyword">const</span> SubobjectDesignator &B) {</div>
+<div class="line"><a name="l02360"></a><span class="lineno"> 2360</span>   <span class="keywordflow">if</span> (A.Entries.size() != B.Entries.size())</div>
+<div class="line"><a name="l02361"></a><span class="lineno"> 2361</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02362"></a><span class="lineno"> 2362</span> </div>
+<div class="line"><a name="l02363"></a><span class="lineno"> 2363</span>   <span class="keywordtype">bool</span> IsArray = A.MostDerivedArraySize != 0;</div>
+<div class="line"><a name="l02364"></a><span class="lineno"> 2364</span>   <span class="keywordflow">if</span> (IsArray && A.MostDerivedPathLength != A.Entries.size())</div>
+<div class="line"><a name="l02365"></a><span class="lineno"> 2365</span>     <span class="comment">// A is a subobject of the array element.</span></div>
+<div class="line"><a name="l02366"></a><span class="lineno"> 2366</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02367"></a><span class="lineno"> 2367</span> </div>
+<div class="line"><a name="l02368"></a><span class="lineno"> 2368</span>   <span class="comment">// If A (and B) designates an array element, the last entry will be the array</span></div>
+<div class="line"><a name="l02369"></a><span class="lineno"> 2369</span>   <span class="comment">// index. That doesn't have to match. Otherwise, we're in the 'implicit array</span></div>
+<div class="line"><a name="l02370"></a><span class="lineno"> 2370</span>   <span class="comment">// of length 1' case, and the entire path must match.</span></div>
+<div class="line"><a name="l02371"></a><span class="lineno"> 2371</span>   <span class="keywordtype">bool</span> WasArrayIndex;</div>
+<div class="line"><a name="l02372"></a><span class="lineno"> 2372</span>   <span class="keywordtype">unsigned</span> CommonLength = <a class="code" href="ExprConstant_8cpp.html#a93c4bcb6f31da0783815eb28bde0fdcc" title="Find the position where two subobject designators diverge, or equivalently the length of the common i...">FindDesignatorMismatch</a>(ObjType, A, B, WasArrayIndex);</div>
+<div class="line"><a name="l02373"></a><span class="lineno"> 2373</span>   <span class="keywordflow">return</span> CommonLength >= A.Entries.size() - IsArray;</div>
+<div class="line"><a name="l02374"></a><span class="lineno"> 2374</span> }</div>
+<div class="line"><a name="l02375"></a><span class="lineno"> 2375</span> <span class="comment"></span></div>
+<div class="line"><a name="l02376"></a><span class="lineno"> 2376</span> <span class="comment">/// Find the complete object to which an LValue refers.</span></div>
+<div class="line"><a name="l02377"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a21acbc71347bb567118e41e996c0f77e"> 2377</a></span> <span class="comment"></span><a class="code" href="structCompleteObject.html">CompleteObject</a> <a class="code" href="ExprConstant_8cpp.html#a21acbc71347bb567118e41e996c0f77e" title="Find the complete object to which an LValue refers.">findCompleteObject</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> AK,</div>
+<div class="line"><a name="l02378"></a><span class="lineno"> 2378</span>                                   <span class="keyword">const</span> LValue &LVal, <a class="code" href="classclang_1_1QualType.html">QualType</a> LValType) {</div>
+<div class="line"><a name="l02379"></a><span class="lineno"> 2379</span>   <span class="keywordflow">if</span> (!LVal.Base) {</div>
+<div class="line"><a name="l02380"></a><span class="lineno"> 2380</span>     Info.Diag(E, diag::note_constexpr_access_null) << AK;</div>
+<div class="line"><a name="l02381"></a><span class="lineno"> 2381</span>     <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02382"></a><span class="lineno"> 2382</span>   }</div>
+<div class="line"><a name="l02383"></a><span class="lineno"> 2383</span> </div>
+<div class="line"><a name="l02384"></a><span class="lineno"> 2384</span>   CallStackFrame *Frame = 0;</div>
+<div class="line"><a name="l02385"></a><span class="lineno"> 2385</span>   <span class="keywordflow">if</span> (LVal.CallIndex) {</div>
+<div class="line"><a name="l02386"></a><span class="lineno"> 2386</span>     Frame = Info.getCallFrame(LVal.CallIndex);</div>
+<div class="line"><a name="l02387"></a><span class="lineno"> 2387</span>     <span class="keywordflow">if</span> (!Frame) {</div>
+<div class="line"><a name="l02388"></a><span class="lineno"> 2388</span>       Info.Diag(E, diag::note_constexpr_lifetime_ended, 1)</div>
+<div class="line"><a name="l02389"></a><span class="lineno"> 2389</span>         << AK << LVal.Base.is<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>();</div>
+<div class="line"><a name="l02390"></a><span class="lineno"> 2390</span>       <a class="code" href="ExprConstant_8cpp.html#a4646c270f0066ba53a26625311a92f40">NoteLValueLocation</a>(Info, LVal.Base);</div>
+<div class="line"><a name="l02391"></a><span class="lineno"> 2391</span>       <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02392"></a><span class="lineno"> 2392</span>     }</div>
+<div class="line"><a name="l02393"></a><span class="lineno"> 2393</span>   }</div>
+<div class="line"><a name="l02394"></a><span class="lineno"> 2394</span> </div>
+<div class="line"><a name="l02395"></a><span class="lineno"> 2395</span>   <span class="comment">// C++11 DR1311: An lvalue-to-rvalue conversion on a volatile-qualified type</span></div>
+<div class="line"><a name="l02396"></a><span class="lineno"> 2396</span>   <span class="comment">// is not a constant expression (even if the object is non-volatile). We also</span></div>
+<div class="line"><a name="l02397"></a><span class="lineno"> 2397</span>   <span class="comment">// apply this rule to C++98, in order to conform to the expected 'volatile'</span></div>
+<div class="line"><a name="l02398"></a><span class="lineno"> 2398</span>   <span class="comment">// semantics.</span></div>
+<div class="line"><a name="l02399"></a><span class="lineno"> 2399</span>   <span class="keywordflow">if</span> (LValType.<a class="code" href="classclang_1_1QualType.html#ace32f56eadc42b2bcf235fccd5a571af" title="Determine whether this type is volatile-qualified.">isVolatileQualified</a>()) {</div>
+<div class="line"><a name="l02400"></a><span class="lineno"> 2400</span>     <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus)</div>
+<div class="line"><a name="l02401"></a><span class="lineno"> 2401</span>       Info.Diag(E, diag::note_constexpr_access_volatile_type)</div>
+<div class="line"><a name="l02402"></a><span class="lineno"> 2402</span>         << AK << LValType;</div>
+<div class="line"><a name="l02403"></a><span class="lineno"> 2403</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02404"></a><span class="lineno"> 2404</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02405"></a><span class="lineno"> 2405</span>     <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02406"></a><span class="lineno"> 2406</span>   }</div>
+<div class="line"><a name="l02407"></a><span class="lineno"> 2407</span> </div>
+<div class="line"><a name="l02408"></a><span class="lineno"> 2408</span>   <span class="comment">// Compute value storage location and type of base object.</span></div>
+<div class="line"><a name="l02409"></a><span class="lineno"> 2409</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> *BaseVal = 0;</div>
+<div class="line"><a name="l02410"></a><span class="lineno"> 2410</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> BaseType = getType(LVal.Base);</div>
+<div class="line"><a name="l02411"></a><span class="lineno"> 2411</span> </div>
+<div class="line"><a name="l02412"></a><span class="lineno"> 2412</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *D = LVal.Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>()) {</div>
+<div class="line"><a name="l02413"></a><span class="lineno"> 2413</span>     <span class="comment">// In C++98, const, non-volatile integers initialized with ICEs are ICEs.</span></div>
+<div class="line"><a name="l02414"></a><span class="lineno"> 2414</span>     <span class="comment">// In C++11, constexpr, non-volatile variables initialized with constant</span></div>
+<div class="line"><a name="l02415"></a><span class="lineno"> 2415</span>     <span class="comment">// expressions are constant expressions too. Inside constexpr functions,</span></div>
+<div class="line"><a name="l02416"></a><span class="lineno"> 2416</span>     <span class="comment">// parameters are constant expressions even if they're non-const.</span></div>
+<div class="line"><a name="l02417"></a><span class="lineno"> 2417</span>     <span class="comment">// In C++1y, objects local to a constant expression (those with a Frame) are</span></div>
+<div class="line"><a name="l02418"></a><span class="lineno"> 2418</span>     <span class="comment">// both readable and writable inside constant expressions.</span></div>
+<div class="line"><a name="l02419"></a><span class="lineno"> 2419</span>     <span class="comment">// In C, such things can also be folded, although they are not ICEs.</span></div>
+<div class="line"><a name="l02420"></a><span class="lineno"> 2420</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD = dyn_cast<<a class="code" href="classclang_1_1VarDecl.html">VarDecl</a>>(D);</div>
+<div class="line"><a name="l02421"></a><span class="lineno"> 2421</span>     <span class="keywordflow">if</span> (VD) {</div>
+<div class="line"><a name="l02422"></a><span class="lineno"> 2422</span>       <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VDef = VD-><a class="code" href="classclang_1_1VarDecl.html#a6ce5eabab501c68c3150b65372e5062f" title="Get the real (not just tentative) definition for this declaration.">getDefinition</a>(Info.Ctx))</div>
+<div class="line"><a name="l02423"></a><span class="lineno"> 2423</span>         VD = VDef;</div>
+<div class="line"><a name="l02424"></a><span class="lineno"> 2424</span>     }</div>
+<div class="line"><a name="l02425"></a><span class="lineno"> 2425</span>     <span class="keywordflow">if</span> (!VD || VD-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>()) {</div>
+<div class="line"><a name="l02426"></a><span class="lineno"> 2426</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02427"></a><span class="lineno"> 2427</span>       <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02428"></a><span class="lineno"> 2428</span>     }</div>
+<div class="line"><a name="l02429"></a><span class="lineno"> 2429</span> </div>
+<div class="line"><a name="l02430"></a><span class="lineno"> 2430</span>     <span class="comment">// Accesses of volatile-qualified objects are not allowed.</span></div>
+<div class="line"><a name="l02431"></a><span class="lineno"> 2431</span>     <span class="keywordflow">if</span> (BaseType.<a class="code" href="classclang_1_1QualType.html#ace32f56eadc42b2bcf235fccd5a571af" title="Determine whether this type is volatile-qualified.">isVolatileQualified</a>()) {</div>
+<div class="line"><a name="l02432"></a><span class="lineno"> 2432</span>       <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus) {</div>
+<div class="line"><a name="l02433"></a><span class="lineno"> 2433</span>         Info.Diag(E, diag::note_constexpr_access_volatile_obj, 1)</div>
+<div class="line"><a name="l02434"></a><span class="lineno"> 2434</span>           << AK << 1 << VD;</div>
+<div class="line"><a name="l02435"></a><span class="lineno"> 2435</span>         Info.Note(VD->getLocation(), diag::note_declared_at);</div>
+<div class="line"><a name="l02436"></a><span class="lineno"> 2436</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02437"></a><span class="lineno"> 2437</span>         Info.Diag(E);</div>
+<div class="line"><a name="l02438"></a><span class="lineno"> 2438</span>       }</div>
+<div class="line"><a name="l02439"></a><span class="lineno"> 2439</span>       <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02440"></a><span class="lineno"> 2440</span>     }</div>
+<div class="line"><a name="l02441"></a><span class="lineno"> 2441</span> </div>
+<div class="line"><a name="l02442"></a><span class="lineno"> 2442</span>     <span class="comment">// Unless we're looking at a local variable or argument in a constexpr call,</span></div>
+<div class="line"><a name="l02443"></a><span class="lineno"> 2443</span>     <span class="comment">// the variable we're reading must be const.</span></div>
+<div class="line"><a name="l02444"></a><span class="lineno"> 2444</span>     <span class="keywordflow">if</span> (!Frame) {</div>
+<div class="line"><a name="l02445"></a><span class="lineno"> 2445</span>       <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus1y &&</div>
+<div class="line"><a name="l02446"></a><span class="lineno"> 2446</span>           VD == Info.EvaluatingDecl.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *>()) {</div>
+<div class="line"><a name="l02447"></a><span class="lineno"> 2447</span>         <span class="comment">// OK, we can read and modify an object if we're in the process of</span></div>
+<div class="line"><a name="l02448"></a><span class="lineno"> 2448</span>         <span class="comment">// evaluating its initializer, because its lifetime began in this</span></div>
+<div class="line"><a name="l02449"></a><span class="lineno"> 2449</span>         <span class="comment">// evaluation.</span></div>
+<div class="line"><a name="l02450"></a><span class="lineno"> 2450</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (AK != <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a>) {</div>
+<div class="line"><a name="l02451"></a><span class="lineno"> 2451</span>         <span class="comment">// All the remaining cases only permit reading.</span></div>
+<div class="line"><a name="l02452"></a><span class="lineno"> 2452</span>         Info.Diag(E, diag::note_constexpr_modify_global);</div>
+<div class="line"><a name="l02453"></a><span class="lineno"> 2453</span>         <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02454"></a><span class="lineno"> 2454</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (VD-><a class="code" href="classclang_1_1VarDecl.html#a2b869e48603ee23219d50f9c8843807a" title="Whether this variable is (C++11) constexpr.">isConstexpr</a>()) {</div>
+<div class="line"><a name="l02455"></a><span class="lineno"> 2455</span>         <span class="comment">// OK, we can read this variable.</span></div>
+<div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (BaseType-><a class="code" href="classclang_1_1Type.html#afa340c23f27a4a28f20bdf52d69a0a4c" title="Determine whether this type is an integral or enumeration type.">isIntegralOrEnumerationType</a>()) {</div>
+<div class="line"><a name="l02457"></a><span class="lineno"> 2457</span>         <span class="keywordflow">if</span> (!BaseType.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>()) {</div>
+<div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>           <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus) {</div>
+<div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>             Info.Diag(E, diag::note_constexpr_ltor_non_const_int, 1) << VD;</div>
+<div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>             Info.Note(VD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>           } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>             Info.Diag(E);</div>
+<div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>           }</div>
+<div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>           <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02465"></a><span class="lineno"> 2465</span>         }</div>
+<div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>       } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (BaseType-><a class="code" href="classclang_1_1Type.html#ad8bb17d7b15f3d610afbdfe49e638220">isFloatingType</a>() && BaseType.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>()) {</div>
+<div class="line"><a name="l02467"></a><span class="lineno"> 2467</span>         <span class="comment">// We support folding of const floating-point types, in order to make</span></div>
+<div class="line"><a name="l02468"></a><span class="lineno"> 2468</span>         <span class="comment">// static const data members of such types (supported as an extension)</span></div>
+<div class="line"><a name="l02469"></a><span class="lineno"> 2469</span>         <span class="comment">// more useful.</span></div>
+<div class="line"><a name="l02470"></a><span class="lineno"> 2470</span>         <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11) {</div>
+<div class="line"><a name="l02471"></a><span class="lineno"> 2471</span>           Info.CCEDiag(E, diag::note_constexpr_ltor_non_constexpr, 1) << VD;</div>
+<div class="line"><a name="l02472"></a><span class="lineno"> 2472</span>           Info.Note(VD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l02473"></a><span class="lineno"> 2473</span>         } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02474"></a><span class="lineno"> 2474</span>           Info.CCEDiag(E);</div>
+<div class="line"><a name="l02475"></a><span class="lineno"> 2475</span>         }</div>
+<div class="line"><a name="l02476"></a><span class="lineno"> 2476</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02477"></a><span class="lineno"> 2477</span>         <span class="comment">// FIXME: Allow folding of values of any literal type in all languages.</span></div>
+<div class="line"><a name="l02478"></a><span class="lineno"> 2478</span>         <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11) {</div>
+<div class="line"><a name="l02479"></a><span class="lineno"> 2479</span>           Info.Diag(E, diag::note_constexpr_ltor_non_constexpr, 1) << VD;</div>
+<div class="line"><a name="l02480"></a><span class="lineno"> 2480</span>           Info.Note(VD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l02481"></a><span class="lineno"> 2481</span>         } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02482"></a><span class="lineno"> 2482</span>           Info.Diag(E);</div>
+<div class="line"><a name="l02483"></a><span class="lineno"> 2483</span>         }</div>
+<div class="line"><a name="l02484"></a><span class="lineno"> 2484</span>         <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02485"></a><span class="lineno"> 2485</span>       }</div>
+<div class="line"><a name="l02486"></a><span class="lineno"> 2486</span>     }</div>
+<div class="line"><a name="l02487"></a><span class="lineno"> 2487</span> </div>
+<div class="line"><a name="l02488"></a><span class="lineno"> 2488</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a40a97b0be33614ae8ed65d7d6572841a">evaluateVarDeclInit</a>(Info, E, VD, Frame, BaseVal))</div>
+<div class="line"><a name="l02489"></a><span class="lineno"> 2489</span>       <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02490"></a><span class="lineno"> 2490</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02491"></a><span class="lineno"> 2491</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Base = LVal.Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a>*>();</div>
+<div class="line"><a name="l02492"></a><span class="lineno"> 2492</span> </div>
+<div class="line"><a name="l02493"></a><span class="lineno"> 2493</span>     <span class="keywordflow">if</span> (!Frame) {</div>
+<div class="line"><a name="l02494"></a><span class="lineno"> 2494</span>       <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1MaterializeTemporaryExpr.html" title="Represents a prvalue temporary that is written into memory so that a reference can bind to it...">MaterializeTemporaryExpr</a> *MTE =</div>
+<div class="line"><a name="l02495"></a><span class="lineno"> 2495</span>               dyn_cast<MaterializeTemporaryExpr>(Base)) {</div>
+<div class="line"><a name="l02496"></a><span class="lineno"> 2496</span>         assert(MTE->getStorageDuration() == <a class="code" href="namespaceclang.html#a73616c07a633e772603049315dc55554a7495dcf7f33e44049d18217454dba7c0" title="Static storage duration.">SD_Static</a> &&</div>
+<div class="line"><a name="l02497"></a><span class="lineno"> 2497</span>                <span class="stringliteral">"should have a frame for a non-global materialized temporary"</span>);</div>
+<div class="line"><a name="l02498"></a><span class="lineno"> 2498</span> </div>
+<div class="line"><a name="l02499"></a><span class="lineno"> 2499</span>         <span class="comment">// Per C++1y [expr.const]p2:</span></div>
+<div class="line"><a name="l02500"></a><span class="lineno"> 2500</span>         <span class="comment">//  an lvalue-to-rvalue conversion [is not allowed unless it applies to]</span></div>
+<div class="line"><a name="l02501"></a><span class="lineno"> 2501</span>         <span class="comment">//   - a [...] glvalue of integral or enumeration type that refers to</span></div>
+<div class="line"><a name="l02502"></a><span class="lineno"> 2502</span>         <span class="comment">//     a non-volatile const object [...]</span></div>
+<div class="line"><a name="l02503"></a><span class="lineno"> 2503</span>         <span class="comment">//   [...]</span></div>
+<div class="line"><a name="l02504"></a><span class="lineno"> 2504</span>         <span class="comment">//   - a [...] glvalue of literal type that refers to a non-volatile</span></div>
+<div class="line"><a name="l02505"></a><span class="lineno"> 2505</span>         <span class="comment">//     object whose lifetime began within the evaluation of e.</span></div>
+<div class="line"><a name="l02506"></a><span class="lineno"> 2506</span>         <span class="comment">//</span></div>
+<div class="line"><a name="l02507"></a><span class="lineno"> 2507</span>         <span class="comment">// C++11 misses the 'began within the evaluation of e' check and</span></div>
+<div class="line"><a name="l02508"></a><span class="lineno"> 2508</span>         <span class="comment">// instead allows all temporaries, including things like:</span></div>
+<div class="line"><a name="l02509"></a><span class="lineno"> 2509</span>         <span class="comment">//   int &&r = 1;</span></div>
+<div class="line"><a name="l02510"></a><span class="lineno"> 2510</span>         <span class="comment">//   int x = ++r;</span></div>
+<div class="line"><a name="l02511"></a><span class="lineno"> 2511</span>         <span class="comment">//   constexpr int k = r;</span></div>
+<div class="line"><a name="l02512"></a><span class="lineno"> 2512</span>         <span class="comment">// Therefore we use the C++1y rules in C++11 too.</span></div>
+<div class="line"><a name="l02513"></a><span class="lineno"> 2513</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *VD = Info.EvaluatingDecl.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a>*>();</div>
+<div class="line"><a name="l02514"></a><span class="lineno"> 2514</span>         <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *ED = MTE->getExtendingDecl();</div>
+<div class="line"><a name="l02515"></a><span class="lineno"> 2515</span>         <span class="keywordflow">if</span> (!(BaseType.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>() &&</div>
+<div class="line"><a name="l02516"></a><span class="lineno"> 2516</span>               BaseType-><a class="code" href="classclang_1_1Type.html#afa340c23f27a4a28f20bdf52d69a0a4c" title="Determine whether this type is an integral or enumeration type.">isIntegralOrEnumerationType</a>()) &&</div>
+<div class="line"><a name="l02517"></a><span class="lineno"> 2517</span>             !(VD && VD->getCanonicalDecl() == ED->getCanonicalDecl())) {</div>
+<div class="line"><a name="l02518"></a><span class="lineno"> 2518</span>           Info.Diag(E, diag::note_constexpr_access_static_temporary, 1) << AK;</div>
+<div class="line"><a name="l02519"></a><span class="lineno"> 2519</span>           Info.Note(MTE->getExprLoc(), diag::note_constexpr_temporary_here);</div>
+<div class="line"><a name="l02520"></a><span class="lineno"> 2520</span>           <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02521"></a><span class="lineno"> 2521</span>         }</div>
+<div class="line"><a name="l02522"></a><span class="lineno"> 2522</span> </div>
+<div class="line"><a name="l02523"></a><span class="lineno"> 2523</span>         BaseVal = Info.Ctx.getMaterializedTemporaryValue(MTE, <span class="keyword">false</span>);</div>
+<div class="line"><a name="l02524"></a><span class="lineno"> 2524</span>         assert(BaseVal && <span class="stringliteral">"got reference to unevaluated temporary"</span>);</div>
+<div class="line"><a name="l02525"></a><span class="lineno"> 2525</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02526"></a><span class="lineno"> 2526</span>         Info.Diag(E);</div>
+<div class="line"><a name="l02527"></a><span class="lineno"> 2527</span>         <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02528"></a><span class="lineno"> 2528</span>       }</div>
+<div class="line"><a name="l02529"></a><span class="lineno"> 2529</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02530"></a><span class="lineno"> 2530</span>       BaseVal = Frame->getTemporary(Base);</div>
+<div class="line"><a name="l02531"></a><span class="lineno"> 2531</span>       assert(BaseVal && <span class="stringliteral">"missing value for temporary"</span>);</div>
+<div class="line"><a name="l02532"></a><span class="lineno"> 2532</span>     }</div>
+<div class="line"><a name="l02533"></a><span class="lineno"> 2533</span> </div>
+<div class="line"><a name="l02534"></a><span class="lineno"> 2534</span>     <span class="comment">// Volatile temporary objects cannot be accessed in constant expressions.</span></div>
+<div class="line"><a name="l02535"></a><span class="lineno"> 2535</span>     <span class="keywordflow">if</span> (BaseType.<a class="code" href="classclang_1_1QualType.html#ace32f56eadc42b2bcf235fccd5a571af" title="Determine whether this type is volatile-qualified.">isVolatileQualified</a>()) {</div>
+<div class="line"><a name="l02536"></a><span class="lineno"> 2536</span>       <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus) {</div>
+<div class="line"><a name="l02537"></a><span class="lineno"> 2537</span>         Info.Diag(E, diag::note_constexpr_access_volatile_obj, 1)</div>
+<div class="line"><a name="l02538"></a><span class="lineno"> 2538</span>           << AK << 0;</div>
+<div class="line"><a name="l02539"></a><span class="lineno"> 2539</span>         Info.Note(Base-><a class="code" href="classclang_1_1Expr.html#ab4fa508722ecc1546ad73cb31b0dc06c">getExprLoc</a>(), diag::note_constexpr_temporary_here);</div>
+<div class="line"><a name="l02540"></a><span class="lineno"> 2540</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02541"></a><span class="lineno"> 2541</span>         Info.Diag(E);</div>
+<div class="line"><a name="l02542"></a><span class="lineno"> 2542</span>       }</div>
+<div class="line"><a name="l02543"></a><span class="lineno"> 2543</span>       <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02544"></a><span class="lineno"> 2544</span>     }</div>
+<div class="line"><a name="l02545"></a><span class="lineno"> 2545</span>   }</div>
+<div class="line"><a name="l02546"></a><span class="lineno"> 2546</span> </div>
+<div class="line"><a name="l02547"></a><span class="lineno"> 2547</span>   <span class="comment">// During the construction of an object, it is not yet 'const'.</span></div>
+<div class="line"><a name="l02548"></a><span class="lineno"> 2548</span>   <span class="comment">// FIXME: We don't set up EvaluatingDecl for local variables or temporaries,</span></div>
+<div class="line"><a name="l02549"></a><span class="lineno"> 2549</span>   <span class="comment">// and this doesn't do quite the right thing for const subobjects of the</span></div>
+<div class="line"><a name="l02550"></a><span class="lineno"> 2550</span>   <span class="comment">// object under construction.</span></div>
+<div class="line"><a name="l02551"></a><span class="lineno"> 2551</span>   <span class="keywordflow">if</span> (LVal.getLValueBase() == Info.EvaluatingDecl) {</div>
+<div class="line"><a name="l02552"></a><span class="lineno"> 2552</span>     BaseType = Info.Ctx.getCanonicalType(BaseType);</div>
+<div class="line"><a name="l02553"></a><span class="lineno"> 2553</span>     BaseType.<a class="code" href="classclang_1_1QualType.html#abd4593693d89ab9d35763ab4e4dc9f72">removeLocalConst</a>();</div>
+<div class="line"><a name="l02554"></a><span class="lineno"> 2554</span>   }</div>
+<div class="line"><a name="l02555"></a><span class="lineno"> 2555</span> </div>
+<div class="line"><a name="l02556"></a><span class="lineno"> 2556</span>   <span class="comment">// In C++1y, we can't safely access any mutable state when we might be</span></div>
+<div class="line"><a name="l02557"></a><span class="lineno"> 2557</span>   <span class="comment">// evaluating after an unmodeled side effect or an evaluation failure.</span></div>
+<div class="line"><a name="l02558"></a><span class="lineno"> 2558</span>   <span class="comment">//</span></div>
+<div class="line"><a name="l02559"></a><span class="lineno"> 2559</span>   <span class="comment">// FIXME: Not all local state is mutable. Allow local constant subobjects</span></div>
+<div class="line"><a name="l02560"></a><span class="lineno"> 2560</span>   <span class="comment">// to be read here (but take care with 'mutable' fields).</span></div>
+<div class="line"><a name="l02561"></a><span class="lineno"> 2561</span>   <span class="keywordflow">if</span> (Frame && Info.getLangOpts().CPlusPlus1y &&</div>
+<div class="line"><a name="l02562"></a><span class="lineno"> 2562</span>       (Info.EvalStatus.HasSideEffects || Info.keepEvaluatingAfterFailure()))</div>
+<div class="line"><a name="l02563"></a><span class="lineno"> 2563</span>     <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>();</div>
+<div class="line"><a name="l02564"></a><span class="lineno"> 2564</span> </div>
+<div class="line"><a name="l02565"></a><span class="lineno"> 2565</span>   <span class="keywordflow">return</span> <a class="code" href="structCompleteObject.html">CompleteObject</a>(BaseVal, BaseType);</div>
+<div class="line"><a name="l02566"></a><span class="lineno"> 2566</span> }</div>
+<div class="line"><a name="l02567"></a><span class="lineno"> 2567</span> <span class="comment"></span></div>
+<div class="line"><a name="l02568"></a><span class="lineno"> 2568</span> <span class="comment">/// \brief Perform an lvalue-to-rvalue conversion on the given glvalue. This</span></div>
+<div class="line"><a name="l02569"></a><span class="lineno"> 2569</span> <span class="comment">/// can also be used for 'lvalue-to-lvalue' conversions for looking up the</span></div>
+<div class="line"><a name="l02570"></a><span class="lineno"> 2570</span> <span class="comment">/// glvalue referred to by an entity of reference type.</span></div>
+<div class="line"><a name="l02571"></a><span class="lineno"> 2571</span> <span class="comment">///</span></div>
+<div class="line"><a name="l02572"></a><span class="lineno"> 2572</span> <span class="comment">/// \param Info - Information about the ongoing evaluation.</span></div>
+<div class="line"><a name="l02573"></a><span class="lineno"> 2573</span> <span class="comment">/// \param Conv - The expression for which we are performing the conversion.</span></div>
+<div class="line"><a name="l02574"></a><span class="lineno"> 2574</span> <span class="comment">///               Used for diagnostics.</span></div>
+<div class="line"><a name="l02575"></a><span class="lineno"> 2575</span> <span class="comment">/// \param Type - The type of the glvalue (before stripping cv-qualifiers in the</span></div>
+<div class="line"><a name="l02576"></a><span class="lineno"> 2576</span> <span class="comment">///               case of a non-class type).</span></div>
+<div class="line"><a name="l02577"></a><span class="lineno"> 2577</span> <span class="comment">/// \param LVal - The glvalue on which we are attempting to perform this action.</span></div>
+<div class="line"><a name="l02578"></a><span class="lineno"> 2578</span> <span class="comment">/// \param RVal - The produced value will be placed here.</span></div>
+<div class="line"><a name="l02579"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ae5b5a573f28f4d0cde0b1e3f8bdf7293"> 2579</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ae5b5a573f28f4d0cde0b1e3f8bdf7293" title="Perform an lvalue-to-rvalue conversion on the given glvalue. This can also be used for 'lvalue-to-lva...">handleLValueToRValueConversion</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Conv,</div>
+<div class="line"><a name="l02580"></a><span class="lineno"> 2580</span>                                            <a class="code" href="classclang_1_1QualType.html">QualType</a> Type,</div>
+<div class="line"><a name="l02581"></a><span class="lineno"> 2581</span>                                            <span class="keyword">const</span> LValue &LVal, <a class="code" href="classclang_1_1APValue.html">APValue</a> &RVal) {</div>
+<div class="line"><a name="l02582"></a><span class="lineno"> 2582</span>   <span class="keywordflow">if</span> (LVal.Designator.Invalid)</div>
+<div class="line"><a name="l02583"></a><span class="lineno"> 2583</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02584"></a><span class="lineno"> 2584</span> </div>
+<div class="line"><a name="l02585"></a><span class="lineno"> 2585</span>   <span class="comment">// Check for special cases where there is no existing APValue to look at.</span></div>
+<div class="line"><a name="l02586"></a><span class="lineno"> 2586</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Base = LVal.Base.dyn_cast<<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a>*>();</div>
+<div class="line"><a name="l02587"></a><span class="lineno"> 2587</span>   <span class="keywordflow">if</span> (!LVal.Designator.Invalid && Base && !LVal.CallIndex &&</div>
+<div class="line"><a name="l02588"></a><span class="lineno"> 2588</span>       !Type.<a class="code" href="classclang_1_1QualType.html#ace32f56eadc42b2bcf235fccd5a571af" title="Determine whether this type is volatile-qualified.">isVolatileQualified</a>()) {</div>
+<div class="line"><a name="l02589"></a><span class="lineno"> 2589</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1CompoundLiteralExpr.html">CompoundLiteralExpr</a> *CLE = dyn_cast<CompoundLiteralExpr>(Base)) {</div>
+<div class="line"><a name="l02590"></a><span class="lineno"> 2590</span>       <span class="comment">// In C99, a CompoundLiteralExpr is an lvalue, and we defer evaluating the</span></div>
+<div class="line"><a name="l02591"></a><span class="lineno"> 2591</span>       <span class="comment">// initializer until now for such expressions. Such an expression can't be</span></div>
+<div class="line"><a name="l02592"></a><span class="lineno"> 2592</span>       <span class="comment">// an ICE in C, so this only matters for fold.</span></div>
+<div class="line"><a name="l02593"></a><span class="lineno"> 2593</span>       assert(!Info.getLangOpts().CPlusPlus && <span class="stringliteral">"lvalue compound literal in c++?"</span>);</div>
+<div class="line"><a name="l02594"></a><span class="lineno"> 2594</span>       <span class="keywordflow">if</span> (Type.<a class="code" href="classclang_1_1QualType.html#ace32f56eadc42b2bcf235fccd5a571af" title="Determine whether this type is volatile-qualified.">isVolatileQualified</a>()) {</div>
+<div class="line"><a name="l02595"></a><span class="lineno"> 2595</span>         Info.Diag(Conv);</div>
+<div class="line"><a name="l02596"></a><span class="lineno"> 2596</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02597"></a><span class="lineno"> 2597</span>       }</div>
+<div class="line"><a name="l02598"></a><span class="lineno"> 2598</span>       <a class="code" href="classclang_1_1APValue.html">APValue</a> Lit;</div>
+<div class="line"><a name="l02599"></a><span class="lineno"> 2599</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae7dcbcdd6d581c905cc4eeb5fa79c86b">Evaluate</a>(Lit, Info, CLE->getInitializer()))</div>
+<div class="line"><a name="l02600"></a><span class="lineno"> 2600</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02601"></a><span class="lineno"> 2601</span>       <a class="code" href="structCompleteObject.html">CompleteObject</a> LitObj(&Lit, Base-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l02602"></a><span class="lineno"> 2602</span>       <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aa221812702841f924221a71fea917e86" title="Extract the designated sub-object of an rvalue.">extractSubobject</a>(Info, Conv, LitObj, LVal.Designator, RVal);</div>
+<div class="line"><a name="l02603"></a><span class="lineno"> 2603</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (isa<StringLiteral>(Base)) {</div>
+<div class="line"><a name="l02604"></a><span class="lineno"> 2604</span>       <span class="comment">// We represent a string literal array as an lvalue pointing at the</span></div>
+<div class="line"><a name="l02605"></a><span class="lineno"> 2605</span>       <span class="comment">// corresponding expression, rather than building an array of chars.</span></div>
+<div class="line"><a name="l02606"></a><span class="lineno"> 2606</span>       <span class="comment">// FIXME: Support PredefinedExpr, ObjCEncodeExpr, MakeStringConstant</span></div>
+<div class="line"><a name="l02607"></a><span class="lineno"> 2607</span>       <a class="code" href="classclang_1_1APValue.html">APValue</a> Str(Base, CharUnits::Zero(), <a class="code" href="structclang_1_1APValue_1_1NoLValuePath.html">APValue::NoLValuePath</a>(), 0);</div>
+<div class="line"><a name="l02608"></a><span class="lineno"> 2608</span>       <a class="code" href="structCompleteObject.html">CompleteObject</a> StrObj(&Str, Base-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>());</div>
+<div class="line"><a name="l02609"></a><span class="lineno"> 2609</span>       <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aa221812702841f924221a71fea917e86" title="Extract the designated sub-object of an rvalue.">extractSubobject</a>(Info, Conv, StrObj, LVal.Designator, RVal);</div>
+<div class="line"><a name="l02610"></a><span class="lineno"> 2610</span>     }</div>
+<div class="line"><a name="l02611"></a><span class="lineno"> 2611</span>   }</div>
+<div class="line"><a name="l02612"></a><span class="lineno"> 2612</span> </div>
+<div class="line"><a name="l02613"></a><span class="lineno"> 2613</span>   <a class="code" href="structCompleteObject.html">CompleteObject</a> Obj = <a class="code" href="ExprConstant_8cpp.html#a21acbc71347bb567118e41e996c0f77e" title="Find the complete object to which an LValue refers.">findCompleteObject</a>(Info, Conv, <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620af7122e781d4583ad1b055afbfee22794">AK_Read</a>, LVal, Type);</div>
+<div class="line"><a name="l02614"></a><span class="lineno"> 2614</span>   <span class="keywordflow">return</span> Obj && <a class="code" href="ExprConstant_8cpp.html#aa221812702841f924221a71fea917e86" title="Extract the designated sub-object of an rvalue.">extractSubobject</a>(Info, Conv, Obj, LVal.Designator, RVal);</div>
+<div class="line"><a name="l02615"></a><span class="lineno"> 2615</span> }</div>
+<div class="line"><a name="l02616"></a><span class="lineno"> 2616</span> <span class="comment"></span></div>
+<div class="line"><a name="l02617"></a><span class="lineno"> 2617</span> <span class="comment">/// Perform an assignment of Val to LVal. Takes ownership of Val.</span></div>
+<div class="line"><a name="l02618"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a58071c622b415ee44aed8da0cb081e8e"> 2618</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a58071c622b415ee44aed8da0cb081e8e" title="Perform an assignment of Val to LVal. Takes ownership of Val.">handleAssignment</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <span class="keyword">const</span> LValue &LVal,</div>
+<div class="line"><a name="l02619"></a><span class="lineno"> 2619</span>                              <a class="code" href="classclang_1_1QualType.html">QualType</a> LValType, <a class="code" href="classclang_1_1APValue.html">APValue</a> &Val) {</div>
+<div class="line"><a name="l02620"></a><span class="lineno"> 2620</span>   <span class="keywordflow">if</span> (LVal.Designator.Invalid)</div>
+<div class="line"><a name="l02621"></a><span class="lineno"> 2621</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02622"></a><span class="lineno"> 2622</span> </div>
+<div class="line"><a name="l02623"></a><span class="lineno"> 2623</span>   <span class="keywordflow">if</span> (!Info.getLangOpts().CPlusPlus1y) {</div>
+<div class="line"><a name="l02624"></a><span class="lineno"> 2624</span>     Info.Diag(E);</div>
+<div class="line"><a name="l02625"></a><span class="lineno"> 2625</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>   }</div>
+<div class="line"><a name="l02627"></a><span class="lineno"> 2627</span> </div>
+<div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>   <a class="code" href="structCompleteObject.html">CompleteObject</a> Obj = <a class="code" href="ExprConstant_8cpp.html#a21acbc71347bb567118e41e996c0f77e" title="Find the complete object to which an LValue refers.">findCompleteObject</a>(Info, E, <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91937a72e9fc354087f700fce82eb1f6">AK_Assign</a>, LVal, LValType);</div>
+<div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>   <span class="keywordflow">return</span> Obj && <a class="code" href="ExprConstant_8cpp.html#a72b7afbf0d148bada0ce35ecbd53b938" title="Update the designated sub-object of an rvalue to the given value.">modifySubobject</a>(Info, E, Obj, LVal.Designator, Val);</div>
+<div class="line"><a name="l02630"></a><span class="lineno"> 2630</span> }</div>
+<div class="line"><a name="l02631"></a><span class="lineno"> 2631</span> </div>
+<div class="line"><a name="l02632"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#afa703f70236dc1346b70bffae0ff327c"> 2632</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#afa703f70236dc1346b70bffae0ff327c">isOverflowingIntegerType</a>(<a class="code" href="classclang_1_1ASTContext.html" title="Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...">ASTContext</a> &Ctx, <a class="code" href="classclang_1_1QualType.html">QualType</a> T) {</div>
+<div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>   <span class="keywordflow">return</span> T-><a class="code" href="classclang_1_1Type.html#accbf40bf016c5bc6dd5440b454d697b6">isSignedIntegerType</a>() &&</div>
+<div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>          Ctx.<a class="code" href="classclang_1_1ASTContext.html#a80afaaf9a6583ac2fa33734057b8220b">getIntWidth</a>(T) >= Ctx.<a class="code" href="classclang_1_1ASTContext.html#a80afaaf9a6583ac2fa33734057b8220b">getIntWidth</a>(Ctx.<a class="code" href="classclang_1_1ASTContext.html#a873a1148a8ffe184f0e5bd27bf90c0dc">IntTy</a>);</div>
+<div class="line"><a name="l02635"></a><span class="lineno"> 2635</span> }</div>
+<div class="line"><a name="l02636"></a><span class="lineno"> 2636</span> </div>
+<div class="line"><a name="l02637"></a><span class="lineno"> 2637</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l02638"></a><span class="lineno"> 2638</span> <span class="keyword">struct </span>CompoundAssignSubobjectHandler {</div>
+<div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>   EvalInfo &Info;</div>
+<div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E;</div>
+<div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> PromotedLHSType;</div>
+<div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>   <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1">BinaryOperatorKind</a> Opcode;</div>
+<div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &RHS;</div>
+<div class="line"><a name="l02644"></a><span class="lineno"> 2644</span> </div>
+<div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>   <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a> = <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91937a72e9fc354087f700fce82eb1f6">AK_Assign</a>;</div>
+<div class="line"><a name="l02646"></a><span class="lineno"> 2646</span> </div>
+<div class="line"><a name="l02647"></a><span class="lineno"> 2647</span>   <span class="keyword">typedef</span> <span class="keywordtype">bool</span> result_type;</div>
+<div class="line"><a name="l02648"></a><span class="lineno"> 2648</span> </div>
+<div class="line"><a name="l02649"></a><span class="lineno"> 2649</span>   <span class="keywordtype">bool</span> checkConst(<a class="code" href="classclang_1_1QualType.html">QualType</a> QT) {</div>
+<div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>     <span class="comment">// Assigning to a const object has undefined behavior.</span></div>
+<div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>     <span class="keywordflow">if</span> (QT.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>()) {</div>
+<div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>       Info.Diag(E, diag::note_constexpr_modify_const_type) << QT;</div>
+<div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>     }</div>
+<div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>   }</div>
+<div class="line"><a name="l02657"></a><span class="lineno"> 2657</span> </div>
+<div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>   <span class="keywordtype">bool</span> failed() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>   <span class="keywordtype">bool</span> found(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>     <span class="keywordflow">switch</span> (Subobj.<a class="code" href="classclang_1_1APValue.html#acf8c2e6d7c5ddd341f919feab04e2297">getKind</a>()) {</div>
+<div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>     <span class="keywordflow">case</span> APValue::Int:</div>
+<div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>       <span class="keywordflow">return</span> found(Subobj.<a class="code" href="classclang_1_1APValue.html#ad98d172246672624011c2adc236ef0ed">getInt</a>(), SubobjType);</div>
+<div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>     <span class="keywordflow">case</span> APValue::Float:</div>
+<div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>       <span class="keywordflow">return</span> found(Subobj.<a class="code" href="classclang_1_1APValue.html#a3a5e141a004d2422d55018d081a6d221">getFloat</a>(), SubobjType);</div>
+<div class="line"><a name="l02665"></a><span class="lineno"> 2665</span>     <span class="keywordflow">case</span> APValue::ComplexInt:</div>
+<div class="line"><a name="l02666"></a><span class="lineno"> 2666</span>     <span class="keywordflow">case</span> APValue::ComplexFloat:</div>
+<div class="line"><a name="l02667"></a><span class="lineno"> 2667</span>       <span class="comment">// FIXME: Implement complex compound assignment.</span></div>
+<div class="line"><a name="l02668"></a><span class="lineno"> 2668</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02669"></a><span class="lineno"> 2669</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02670"></a><span class="lineno"> 2670</span>     <span class="keywordflow">case</span> APValue::LValue:</div>
+<div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>       <span class="keywordflow">return</span> foundPointer(Subobj, SubobjType);</div>
+<div class="line"><a name="l02672"></a><span class="lineno"> 2672</span>     <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>       <span class="comment">// FIXME: can this happen?</span></div>
+<div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02675"></a><span class="lineno"> 2675</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>     }</div>
+<div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>   }</div>
+<div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>   <span class="keywordtype">bool</span> found(APSInt &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02681"></a><span class="lineno"> 2681</span> </div>
+<div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>     <span class="keywordflow">if</span> (!SubobjType-><a class="code" href="classclang_1_1Type.html#a8bde7a56623fd89e9efafde792c56dac">isIntegerType</a>() || !RHS.isInt()) {</div>
+<div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>       <span class="comment">// We don't support compound assignment on integer-cast-to-pointer</span></div>
+<div class="line"><a name="l02684"></a><span class="lineno"> 2684</span>       <span class="comment">// values.</span></div>
+<div class="line"><a name="l02685"></a><span class="lineno"> 2685</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02686"></a><span class="lineno"> 2686</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02687"></a><span class="lineno"> 2687</span>     }</div>
+<div class="line"><a name="l02688"></a><span class="lineno"> 2688</span> </div>
+<div class="line"><a name="l02689"></a><span class="lineno"> 2689</span>     APSInt LHS = <a class="code" href="ExprConstant_8cpp.html#ad195c92f29be06769f6a31d8688bc4b4">HandleIntToIntCast</a>(Info, E, PromotedLHSType,</div>
+<div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>                                     SubobjType, Value);</div>
+<div class="line"><a name="l02691"></a><span class="lineno"> 2691</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#acc801d05d9e71210927120273f6e0e0b" title="Perform the given binary integer operation.">handleIntIntBinOp</a>(Info, E, LHS, Opcode, RHS.getInt(), LHS))</div>
+<div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>     Value = <a class="code" href="ExprConstant_8cpp.html#ad195c92f29be06769f6a31d8688bc4b4">HandleIntToIntCast</a>(Info, E, SubobjType, PromotedLHSType, LHS);</div>
+<div class="line"><a name="l02694"></a><span class="lineno"> 2694</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>   }</div>
+<div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>   <span class="keywordtype">bool</span> found(APFloat &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>     <span class="keywordflow">return</span> checkConst(SubobjType) &&</div>
+<div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>            <a class="code" href="ExprConstant_8cpp.html#af343c1bfaa4dd74bfb2d98f8d6d0e89e">HandleFloatToFloatCast</a>(Info, E, SubobjType, PromotedLHSType,</div>
+<div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>                                   Value) &&</div>
+<div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>            <a class="code" href="ExprConstant_8cpp.html#a1cba6b943c1308df8866ffdac060dfa8" title="Perform the given binary floating-point operation, in-place, on LHS.">handleFloatFloatBinOp</a>(Info, E, Value, Opcode, RHS.getFloat()) &&</div>
+<div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>            <a class="code" href="ExprConstant_8cpp.html#af343c1bfaa4dd74bfb2d98f8d6d0e89e">HandleFloatToFloatCast</a>(Info, E, PromotedLHSType, SubobjType, Value);</div>
+<div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>   }</div>
+<div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>   <span class="keywordtype">bool</span> foundPointer(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02704"></a><span class="lineno"> 2704</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02705"></a><span class="lineno"> 2705</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02706"></a><span class="lineno"> 2706</span> </div>
+<div class="line"><a name="l02707"></a><span class="lineno"> 2707</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> PointeeType;</div>
+<div class="line"><a name="l02708"></a><span class="lineno"> 2708</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1PointerType.html">PointerType</a> *PT = SubobjType-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1PointerType.html">PointerType</a>>())</div>
+<div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>       PointeeType = PT-><a class="code" href="classclang_1_1Type.html#a3a0edf987679f04072a1243b6118add1">getPointeeType</a>();</div>
+<div class="line"><a name="l02710"></a><span class="lineno"> 2710</span> </div>
+<div class="line"><a name="l02711"></a><span class="lineno"> 2711</span>     <span class="keywordflow">if</span> (PointeeType.<a class="code" href="classclang_1_1QualType.html#a8f87f58000490ad01cd09add1f27d7ac" title="isNull - Return true if this QualType doesn't point to a type yet.">isNull</a>() || !RHS.isInt() ||</div>
+<div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>         (Opcode != <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1abe63fd1a02a7d1191c3b2fd102b983bd">BO_Add</a> && Opcode != <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1af84c54a9c8a061371180b3e8b25d4c3f">BO_Sub</a>)) {</div>
+<div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>     }</div>
+<div class="line"><a name="l02716"></a><span class="lineno"> 2716</span> </div>
+<div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>     int64_t <a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a> = <a class="code" href="ExprConstant_8cpp.html#aa3ebbc95a7d7fc16cb849f7eb01a1865">getExtValue</a>(RHS.getInt());</div>
+<div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>     <span class="keywordflow">if</span> (Opcode == <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1af84c54a9c8a061371180b3e8b25d4c3f">BO_Sub</a>)</div>
+<div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>       Offset = -<a class="code" href="namespaceclang_1_1io.html#ae0bbdf4a2b076935546931e52d48d29b">Offset</a>;</div>
+<div class="line"><a name="l02720"></a><span class="lineno"> 2720</span> </div>
+<div class="line"><a name="l02721"></a><span class="lineno"> 2721</span>     LValue LVal;</div>
+<div class="line"><a name="l02722"></a><span class="lineno"> 2722</span>     LVal.setFrom(Info.Ctx, Subobj);</div>
+<div class="line"><a name="l02723"></a><span class="lineno"> 2723</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae9b1ef93d4c257b58e22f17f143d6390">HandleLValueArrayAdjustment</a>(Info, E, LVal, PointeeType, Offset))</div>
+<div class="line"><a name="l02724"></a><span class="lineno"> 2724</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02725"></a><span class="lineno"> 2725</span>     LVal.moveInto(Subobj);</div>
+<div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>   }</div>
+<div class="line"><a name="l02728"></a><span class="lineno"> 2728</span>   <span class="keywordtype">bool</span> foundString(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType, uint64_t Character) {</div>
+<div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>     llvm_unreachable(<span class="stringliteral">"shouldn't encounter string elements here"</span>);</div>
+<div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>   }</div>
+<div class="line"><a name="l02731"></a><span class="lineno"> 2731</span> };</div>
+<div class="line"><a name="l02732"></a><span class="lineno"> 2732</span> } <span class="comment">// end anonymous namespace</span></div>
+<div class="line"><a name="l02733"></a><span class="lineno"> 2733</span> </div>
+<div class="line"><a name="l02734"></a><span class="lineno"> 2734</span> <span class="keyword">const</span> <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">CompoundAssignSubobjectHandler::AccessKind</a>;</div>
+<div class="line"><a name="l02735"></a><span class="lineno"> 2735</span> <span class="comment"></span></div>
+<div class="line"><a name="l02736"></a><span class="lineno"> 2736</span> <span class="comment">/// Perform a compound assignment of LVal <op>= RVal.</span></div>
+<div class="line"><a name="l02737"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#aafef1f57c15e7d46f5925dfeac31b277"> 2737</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#aafef1f57c15e7d46f5925dfeac31b277" title="Perform a compound assignment of LVal <op>= RVal.">handleCompoundAssignment</a>(</div>
+<div class="line"><a name="l02738"></a><span class="lineno"> 2738</span>     EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E,</div>
+<div class="line"><a name="l02739"></a><span class="lineno"> 2739</span>     <span class="keyword">const</span> LValue &LVal, <a class="code" href="classclang_1_1QualType.html">QualType</a> LValType, <a class="code" href="classclang_1_1QualType.html">QualType</a> PromotedLValType,</div>
+<div class="line"><a name="l02740"></a><span class="lineno"> 2740</span>     <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1">BinaryOperatorKind</a> Opcode, <span class="keyword">const</span> <a class="code" href="classclang_1_1APValue.html">APValue</a> &RVal) {</div>
+<div class="line"><a name="l02741"></a><span class="lineno"> 2741</span>   <span class="keywordflow">if</span> (LVal.Designator.Invalid)</div>
+<div class="line"><a name="l02742"></a><span class="lineno"> 2742</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02743"></a><span class="lineno"> 2743</span> </div>
+<div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>   <span class="keywordflow">if</span> (!Info.getLangOpts().CPlusPlus1y) {</div>
+<div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>     Info.Diag(E);</div>
+<div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02747"></a><span class="lineno"> 2747</span>   }</div>
+<div class="line"><a name="l02748"></a><span class="lineno"> 2748</span> </div>
+<div class="line"><a name="l02749"></a><span class="lineno"> 2749</span>   <a class="code" href="structCompleteObject.html">CompleteObject</a> Obj = <a class="code" href="ExprConstant_8cpp.html#a21acbc71347bb567118e41e996c0f77e" title="Find the complete object to which an LValue refers.">findCompleteObject</a>(Info, E, <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91937a72e9fc354087f700fce82eb1f6">AK_Assign</a>, LVal, LValType);</div>
+<div class="line"><a name="l02750"></a><span class="lineno"> 2750</span>   CompoundAssignSubobjectHandler Handler = { Info, E, PromotedLValType, Opcode,</div>
+<div class="line"><a name="l02751"></a><span class="lineno"> 2751</span>                                              RVal };</div>
+<div class="line"><a name="l02752"></a><span class="lineno"> 2752</span>   <span class="keywordflow">return</span> Obj && <a class="code" href="ExprConstant_8cpp.html#a562d84a01846db3031124173995360dc" title="Find the designated sub-object of an rvalue.">findSubobject</a>(Info, E, Obj, LVal.Designator, Handler);</div>
+<div class="line"><a name="l02753"></a><span class="lineno"> 2753</span> }</div>
+<div class="line"><a name="l02754"></a><span class="lineno"> 2754</span> </div>
+<div class="line"><a name="l02755"></a><span class="lineno"> 2755</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l02756"></a><span class="lineno"> 2756</span> <span class="keyword">struct </span>IncDecSubobjectHandler {</div>
+<div class="line"><a name="l02757"></a><span class="lineno"> 2757</span>   EvalInfo &Info;</div>
+<div class="line"><a name="l02758"></a><span class="lineno"> 2758</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E;</div>
+<div class="line"><a name="l02759"></a><span class="lineno"> 2759</span>   <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a>;</div>
+<div class="line"><a name="l02760"></a><span class="lineno"> 2760</span>   <a class="code" href="classclang_1_1APValue.html">APValue</a> *Old;</div>
+<div class="line"><a name="l02761"></a><span class="lineno"> 2761</span> </div>
+<div class="line"><a name="l02762"></a><span class="lineno"> 2762</span>   <span class="keyword">typedef</span> <span class="keywordtype">bool</span> result_type;</div>
+<div class="line"><a name="l02763"></a><span class="lineno"> 2763</span> </div>
+<div class="line"><a name="l02764"></a><span class="lineno"> 2764</span>   <span class="keywordtype">bool</span> checkConst(<a class="code" href="classclang_1_1QualType.html">QualType</a> QT) {</div>
+<div class="line"><a name="l02765"></a><span class="lineno"> 2765</span>     <span class="comment">// Assigning to a const object has undefined behavior.</span></div>
+<div class="line"><a name="l02766"></a><span class="lineno"> 2766</span>     <span class="keywordflow">if</span> (QT.<a class="code" href="classclang_1_1QualType.html#afea72c89b99446db779fcfb0ea257826" title="Determine whether this type is const-qualified.">isConstQualified</a>()) {</div>
+<div class="line"><a name="l02767"></a><span class="lineno"> 2767</span>       Info.Diag(E, diag::note_constexpr_modify_const_type) << QT;</div>
+<div class="line"><a name="l02768"></a><span class="lineno"> 2768</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02769"></a><span class="lineno"> 2769</span>     }</div>
+<div class="line"><a name="l02770"></a><span class="lineno"> 2770</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02771"></a><span class="lineno"> 2771</span>   }</div>
+<div class="line"><a name="l02772"></a><span class="lineno"> 2772</span> </div>
+<div class="line"><a name="l02773"></a><span class="lineno"> 2773</span>   <span class="keywordtype">bool</span> failed() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
+<div class="line"><a name="l02774"></a><span class="lineno"> 2774</span>   <span class="keywordtype">bool</span> found(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02775"></a><span class="lineno"> 2775</span>     <span class="comment">// Stash the old value. Also clear Old, so we don't clobber it later</span></div>
+<div class="line"><a name="l02776"></a><span class="lineno"> 2776</span>     <span class="comment">// if we're post-incrementing a complex.</span></div>
+<div class="line"><a name="l02777"></a><span class="lineno"> 2777</span>     <span class="keywordflow">if</span> (Old) {</div>
+<div class="line"><a name="l02778"></a><span class="lineno"> 2778</span>       *Old = Subobj;</div>
+<div class="line"><a name="l02779"></a><span class="lineno"> 2779</span>       Old = 0;</div>
+<div class="line"><a name="l02780"></a><span class="lineno"> 2780</span>     }</div>
+<div class="line"><a name="l02781"></a><span class="lineno"> 2781</span> </div>
+<div class="line"><a name="l02782"></a><span class="lineno"> 2782</span>     <span class="keywordflow">switch</span> (Subobj.<a class="code" href="classclang_1_1APValue.html#acf8c2e6d7c5ddd341f919feab04e2297">getKind</a>()) {</div>
+<div class="line"><a name="l02783"></a><span class="lineno"> 2783</span>     <span class="keywordflow">case</span> APValue::Int:</div>
+<div class="line"><a name="l02784"></a><span class="lineno"> 2784</span>       <span class="keywordflow">return</span> found(Subobj.<a class="code" href="classclang_1_1APValue.html#ad98d172246672624011c2adc236ef0ed">getInt</a>(), SubobjType);</div>
+<div class="line"><a name="l02785"></a><span class="lineno"> 2785</span>     <span class="keywordflow">case</span> APValue::Float:</div>
+<div class="line"><a name="l02786"></a><span class="lineno"> 2786</span>       <span class="keywordflow">return</span> found(Subobj.<a class="code" href="classclang_1_1APValue.html#a3a5e141a004d2422d55018d081a6d221">getFloat</a>(), SubobjType);</div>
+<div class="line"><a name="l02787"></a><span class="lineno"> 2787</span>     <span class="keywordflow">case</span> APValue::ComplexInt:</div>
+<div class="line"><a name="l02788"></a><span class="lineno"> 2788</span>       <span class="keywordflow">return</span> found(Subobj.<a class="code" href="classclang_1_1APValue.html#a66e83a13553ec7be07e881a723ed2555">getComplexIntReal</a>(),</div>
+<div class="line"><a name="l02789"></a><span class="lineno"> 2789</span>                    SubobjType-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1ComplexType.html">ComplexType</a>>()-><a class="code" href="SemaChecking_8cpp.html#a9f6c9a015ec06db5f86672533b582823">getElementType</a>()</div>
+<div class="line"><a name="l02790"></a><span class="lineno"> 2790</span>                      .withCVRQualifiers(SubobjType.<a class="code" href="classclang_1_1QualType.html#abc6490a992eabbeb68526d3104fd4b66" title="Retrieve the set of CVR (const-volatile-restrict) qualifiers applied to this type.">getCVRQualifiers</a>()));</div>
+<div class="line"><a name="l02791"></a><span class="lineno"> 2791</span>     <span class="keywordflow">case</span> APValue::ComplexFloat:</div>
+<div class="line"><a name="l02792"></a><span class="lineno"> 2792</span>       <span class="keywordflow">return</span> found(Subobj.<a class="code" href="classclang_1_1APValue.html#adc48962e4b1f10ede59a8b8e77988045">getComplexFloatReal</a>(),</div>
+<div class="line"><a name="l02793"></a><span class="lineno"> 2793</span>                    SubobjType-><a class="code" href="classclang_1_1Type.html#ac4a3f2c505332c3c556bd20497d1a5c3">castAs</a><<a class="code" href="classclang_1_1ComplexType.html">ComplexType</a>>()-><a class="code" href="SemaChecking_8cpp.html#a9f6c9a015ec06db5f86672533b582823">getElementType</a>()</div>
+<div class="line"><a name="l02794"></a><span class="lineno"> 2794</span>                      .withCVRQualifiers(SubobjType.<a class="code" href="classclang_1_1QualType.html#abc6490a992eabbeb68526d3104fd4b66" title="Retrieve the set of CVR (const-volatile-restrict) qualifiers applied to this type.">getCVRQualifiers</a>()));</div>
+<div class="line"><a name="l02795"></a><span class="lineno"> 2795</span>     <span class="keywordflow">case</span> APValue::LValue:</div>
+<div class="line"><a name="l02796"></a><span class="lineno"> 2796</span>       <span class="keywordflow">return</span> foundPointer(Subobj, SubobjType);</div>
+<div class="line"><a name="l02797"></a><span class="lineno"> 2797</span>     <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l02798"></a><span class="lineno"> 2798</span>       <span class="comment">// FIXME: can this happen?</span></div>
+<div class="line"><a name="l02799"></a><span class="lineno"> 2799</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02800"></a><span class="lineno"> 2800</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02801"></a><span class="lineno"> 2801</span>     }</div>
+<div class="line"><a name="l02802"></a><span class="lineno"> 2802</span>   }</div>
+<div class="line"><a name="l02803"></a><span class="lineno"> 2803</span>   <span class="keywordtype">bool</span> found(APSInt &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02804"></a><span class="lineno"> 2804</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02805"></a><span class="lineno"> 2805</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02806"></a><span class="lineno"> 2806</span> </div>
+<div class="line"><a name="l02807"></a><span class="lineno"> 2807</span>     <span class="keywordflow">if</span> (!SubobjType-><a class="code" href="classclang_1_1Type.html#a8bde7a56623fd89e9efafde792c56dac">isIntegerType</a>()) {</div>
+<div class="line"><a name="l02808"></a><span class="lineno"> 2808</span>       <span class="comment">// We don't support increment / decrement on integer-cast-to-pointer</span></div>
+<div class="line"><a name="l02809"></a><span class="lineno"> 2809</span>       <span class="comment">// values.</span></div>
+<div class="line"><a name="l02810"></a><span class="lineno"> 2810</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02811"></a><span class="lineno"> 2811</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02812"></a><span class="lineno"> 2812</span>     }</div>
+<div class="line"><a name="l02813"></a><span class="lineno"> 2813</span> </div>
+<div class="line"><a name="l02814"></a><span class="lineno"> 2814</span>     <span class="keywordflow">if</span> (Old) *Old = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Value);</div>
+<div class="line"><a name="l02815"></a><span class="lineno"> 2815</span> </div>
+<div class="line"><a name="l02816"></a><span class="lineno"> 2816</span>     <span class="comment">// bool arithmetic promotes to int, and the conversion back to bool</span></div>
+<div class="line"><a name="l02817"></a><span class="lineno"> 2817</span>     <span class="comment">// doesn't reduce mod 2^n, so special-case it.</span></div>
+<div class="line"><a name="l02818"></a><span class="lineno"> 2818</span>     <span class="keywordflow">if</span> (SubobjType-><a class="code" href="classclang_1_1Type.html#ac16047fbf3b5325d6528d8557803b0cc">isBooleanType</a>()) {</div>
+<div class="line"><a name="l02819"></a><span class="lineno"> 2819</span>       <span class="keywordflow">if</span> (<a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a> == <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a57e73c66d52f7bceb05543398cd1447c">AK_Increment</a>)</div>
+<div class="line"><a name="l02820"></a><span class="lineno"> 2820</span>         Value = 1;</div>
+<div class="line"><a name="l02821"></a><span class="lineno"> 2821</span>       <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02822"></a><span class="lineno"> 2822</span>         Value = !<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l02823"></a><span class="lineno"> 2823</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02824"></a><span class="lineno"> 2824</span>     }</div>
+<div class="line"><a name="l02825"></a><span class="lineno"> 2825</span> </div>
+<div class="line"><a name="l02826"></a><span class="lineno"> 2826</span>     <span class="keywordtype">bool</span> WasNegative = Value.isNegative();</div>
+<div class="line"><a name="l02827"></a><span class="lineno"> 2827</span>     <span class="keywordflow">if</span> (<a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a> == <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a57e73c66d52f7bceb05543398cd1447c">AK_Increment</a>) {</div>
+<div class="line"><a name="l02828"></a><span class="lineno"> 2828</span>       ++<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l02829"></a><span class="lineno"> 2829</span> </div>
+<div class="line"><a name="l02830"></a><span class="lineno"> 2830</span>       <span class="keywordflow">if</span> (!WasNegative && Value.isNegative() &&</div>
+<div class="line"><a name="l02831"></a><span class="lineno"> 2831</span>           <a class="code" href="ExprConstant_8cpp.html#afa703f70236dc1346b70bffae0ff327c">isOverflowingIntegerType</a>(Info.Ctx, SubobjType)) {</div>
+<div class="line"><a name="l02832"></a><span class="lineno"> 2832</span>         APSInt ActualValue(Value, <span class="comment">/*IsUnsigned*/</span><span class="keyword">true</span>);</div>
+<div class="line"><a name="l02833"></a><span class="lineno"> 2833</span>         <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(Info, E, ActualValue, SubobjType);</div>
+<div class="line"><a name="l02834"></a><span class="lineno"> 2834</span>       }</div>
+<div class="line"><a name="l02835"></a><span class="lineno"> 2835</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02836"></a><span class="lineno"> 2836</span>       --<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l02837"></a><span class="lineno"> 2837</span> </div>
+<div class="line"><a name="l02838"></a><span class="lineno"> 2838</span>       <span class="keywordflow">if</span> (WasNegative && !Value.isNegative() &&</div>
+<div class="line"><a name="l02839"></a><span class="lineno"> 2839</span>           <a class="code" href="ExprConstant_8cpp.html#afa703f70236dc1346b70bffae0ff327c">isOverflowingIntegerType</a>(Info.Ctx, SubobjType)) {</div>
+<div class="line"><a name="l02840"></a><span class="lineno"> 2840</span>         <span class="keywordtype">unsigned</span> BitWidth = Value.getBitWidth();</div>
+<div class="line"><a name="l02841"></a><span class="lineno"> 2841</span>         APSInt ActualValue(Value.sext(BitWidth + 1), <span class="comment">/*IsUnsigned*/</span><span class="keyword">false</span>);</div>
+<div class="line"><a name="l02842"></a><span class="lineno"> 2842</span>         ActualValue.setBit(BitWidth);</div>
+<div class="line"><a name="l02843"></a><span class="lineno"> 2843</span>         <a class="code" href="ExprConstant_8cpp.html#ac82ce921015edb7be91b70d66999f040">HandleOverflow</a>(Info, E, ActualValue, SubobjType);</div>
+<div class="line"><a name="l02844"></a><span class="lineno"> 2844</span>       }</div>
+<div class="line"><a name="l02845"></a><span class="lineno"> 2845</span>     }</div>
+<div class="line"><a name="l02846"></a><span class="lineno"> 2846</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02847"></a><span class="lineno"> 2847</span>   }</div>
+<div class="line"><a name="l02848"></a><span class="lineno"> 2848</span>   <span class="keywordtype">bool</span> found(APFloat &Value, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02849"></a><span class="lineno"> 2849</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02850"></a><span class="lineno"> 2850</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02851"></a><span class="lineno"> 2851</span> </div>
+<div class="line"><a name="l02852"></a><span class="lineno"> 2852</span>     <span class="keywordflow">if</span> (Old) *Old = <a class="code" href="classclang_1_1APValue.html">APValue</a>(Value);</div>
+<div class="line"><a name="l02853"></a><span class="lineno"> 2853</span> </div>
+<div class="line"><a name="l02854"></a><span class="lineno"> 2854</span>     APFloat One(Value.getSemantics(), 1);</div>
+<div class="line"><a name="l02855"></a><span class="lineno"> 2855</span>     <span class="keywordflow">if</span> (<a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a> == <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a57e73c66d52f7bceb05543398cd1447c">AK_Increment</a>)</div>
+<div class="line"><a name="l02856"></a><span class="lineno"> 2856</span>       Value.add(One, APFloat::rmNearestTiesToEven);</div>
+<div class="line"><a name="l02857"></a><span class="lineno"> 2857</span>     <span class="keywordflow">else</span></div>
+<div class="line"><a name="l02858"></a><span class="lineno"> 2858</span>       Value.subtract(One, APFloat::rmNearestTiesToEven);</div>
+<div class="line"><a name="l02859"></a><span class="lineno"> 2859</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02860"></a><span class="lineno"> 2860</span>   }</div>
+<div class="line"><a name="l02861"></a><span class="lineno"> 2861</span>   <span class="keywordtype">bool</span> foundPointer(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType) {</div>
+<div class="line"><a name="l02862"></a><span class="lineno"> 2862</span>     <span class="keywordflow">if</span> (!checkConst(SubobjType))</div>
+<div class="line"><a name="l02863"></a><span class="lineno"> 2863</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02864"></a><span class="lineno"> 2864</span> </div>
+<div class="line"><a name="l02865"></a><span class="lineno"> 2865</span>     <a class="code" href="classclang_1_1QualType.html">QualType</a> PointeeType;</div>
+<div class="line"><a name="l02866"></a><span class="lineno"> 2866</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1PointerType.html">PointerType</a> *PT = SubobjType-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1PointerType.html">PointerType</a>>())</div>
+<div class="line"><a name="l02867"></a><span class="lineno"> 2867</span>       PointeeType = PT-><a class="code" href="classclang_1_1Type.html#a3a0edf987679f04072a1243b6118add1">getPointeeType</a>();</div>
+<div class="line"><a name="l02868"></a><span class="lineno"> 2868</span>     <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l02869"></a><span class="lineno"> 2869</span>       Info.Diag(E);</div>
+<div class="line"><a name="l02870"></a><span class="lineno"> 2870</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02871"></a><span class="lineno"> 2871</span>     }</div>
+<div class="line"><a name="l02872"></a><span class="lineno"> 2872</span> </div>
+<div class="line"><a name="l02873"></a><span class="lineno"> 2873</span>     LValue LVal;</div>
+<div class="line"><a name="l02874"></a><span class="lineno"> 2874</span>     LVal.setFrom(Info.Ctx, Subobj);</div>
+<div class="line"><a name="l02875"></a><span class="lineno"> 2875</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae9b1ef93d4c257b58e22f17f143d6390">HandleLValueArrayAdjustment</a>(Info, E, LVal, PointeeType,</div>
+<div class="line"><a name="l02876"></a><span class="lineno"> 2876</span>                                      <a class="code" href="namespaceclang_1_1thread__safety.html#a8b642bd0ea1baf8d1a9284ff6973c877">AccessKind</a> == <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a57e73c66d52f7bceb05543398cd1447c">AK_Increment</a> ? 1 : -1))</div>
+<div class="line"><a name="l02877"></a><span class="lineno"> 2877</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02878"></a><span class="lineno"> 2878</span>     LVal.moveInto(Subobj);</div>
+<div class="line"><a name="l02879"></a><span class="lineno"> 2879</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l02880"></a><span class="lineno"> 2880</span>   }</div>
+<div class="line"><a name="l02881"></a><span class="lineno"> 2881</span>   <span class="keywordtype">bool</span> foundString(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Subobj, <a class="code" href="classclang_1_1QualType.html">QualType</a> SubobjType, uint64_t Character) {</div>
+<div class="line"><a name="l02882"></a><span class="lineno"> 2882</span>     llvm_unreachable(<span class="stringliteral">"shouldn't encounter string elements here"</span>);</div>
+<div class="line"><a name="l02883"></a><span class="lineno"> 2883</span>   }</div>
+<div class="line"><a name="l02884"></a><span class="lineno"> 2884</span> };</div>
+<div class="line"><a name="l02885"></a><span class="lineno"> 2885</span> } <span class="comment">// end anonymous namespace</span></div>
+<div class="line"><a name="l02886"></a><span class="lineno"> 2886</span> <span class="comment"></span></div>
+<div class="line"><a name="l02887"></a><span class="lineno"> 2887</span> <span class="comment">/// Perform an increment or decrement on LVal.</span></div>
+<div class="line"><a name="l02888"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#af553da4c2e6e0e1fdb877a34cc8fc007"> 2888</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#af553da4c2e6e0e1fdb877a34cc8fc007" title="Perform an increment or decrement on LVal.">handleIncDec</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E, <span class="keyword">const</span> LValue &LVal,</div>
+<div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>                          <a class="code" href="classclang_1_1QualType.html">QualType</a> LValType, <span class="keywordtype">bool</span> IsIncrement, <a class="code" href="classclang_1_1APValue.html">APValue</a> *Old) {</div>
+<div class="line"><a name="l02890"></a><span class="lineno"> 2890</span>   <span class="keywordflow">if</span> (LVal.Designator.Invalid)</div>
+<div class="line"><a name="l02891"></a><span class="lineno"> 2891</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02892"></a><span class="lineno"> 2892</span> </div>
+<div class="line"><a name="l02893"></a><span class="lineno"> 2893</span>   <span class="keywordflow">if</span> (!Info.getLangOpts().CPlusPlus1y) {</div>
+<div class="line"><a name="l02894"></a><span class="lineno"> 2894</span>     Info.Diag(E);</div>
+<div class="line"><a name="l02895"></a><span class="lineno"> 2895</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02896"></a><span class="lineno"> 2896</span>   }</div>
+<div class="line"><a name="l02897"></a><span class="lineno"> 2897</span> </div>
+<div class="line"><a name="l02898"></a><span class="lineno"> 2898</span>   <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620" title="Kinds of access we can perform on an object, for diagnostics.">AccessKinds</a> AK = IsIncrement ? <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a57e73c66d52f7bceb05543398cd1447c">AK_Increment</a> : <a class="code" href="ExprConstant_8cpp.html#ab31d7e04153062103032e6b3a8b78620a91f1bb20a1fe0599ebf457b43a8eeb73">AK_Decrement</a>;</div>
+<div class="line"><a name="l02899"></a><span class="lineno"> 2899</span>   <a class="code" href="structCompleteObject.html">CompleteObject</a> Obj = <a class="code" href="ExprConstant_8cpp.html#a21acbc71347bb567118e41e996c0f77e" title="Find the complete object to which an LValue refers.">findCompleteObject</a>(Info, E, AK, LVal, LValType);</div>
+<div class="line"><a name="l02900"></a><span class="lineno"> 2900</span>   IncDecSubobjectHandler Handler = { Info, E, AK, Old };</div>
+<div class="line"><a name="l02901"></a><span class="lineno"> 2901</span>   <span class="keywordflow">return</span> Obj && <a class="code" href="ExprConstant_8cpp.html#a562d84a01846db3031124173995360dc" title="Find the designated sub-object of an rvalue.">findSubobject</a>(Info, E, Obj, LVal.Designator, Handler);</div>
+<div class="line"><a name="l02902"></a><span class="lineno"> 2902</span> }</div>
+<div class="line"><a name="l02903"></a><span class="lineno"> 2903</span> <span class="comment"></span></div>
+<div class="line"><a name="l02904"></a><span class="lineno"> 2904</span> <span class="comment">/// Build an lvalue for the object argument of a member function call.</span></div>
+<div class="line"><a name="l02905"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a6db8def58d4ac8956c059e5a581c7d0f"> 2905</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a6db8def58d4ac8956c059e5a581c7d0f" title="Build an lvalue for the object argument of a member function call.">EvaluateObjectArgument</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Object,</div>
+<div class="line"><a name="l02906"></a><span class="lineno"> 2906</span>                                    LValue &This) {</div>
+<div class="line"><a name="l02907"></a><span class="lineno"> 2907</span>   <span class="keywordflow">if</span> (Object-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>()-><a class="code" href="classclang_1_1Type.html#a1c0038a55083ee0a292a020038ee04d8">isPointerType</a>())</div>
+<div class="line"><a name="l02908"></a><span class="lineno"> 2908</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#ad6cb52c66467838af50f248b46b6ed42">EvaluatePointer</a>(Object, This, Info);</div>
+<div class="line"><a name="l02909"></a><span class="lineno"> 2909</span> </div>
+<div class="line"><a name="l02910"></a><span class="lineno"> 2910</span>   <span class="keywordflow">if</span> (Object-><a class="code" href="classclang_1_1Expr.html#ae5788e69a4c1d2d1b1e5ddaa4d525e22">isGLValue</a>())</div>
+<div class="line"><a name="l02911"></a><span class="lineno"> 2911</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#af2c59086486ff9ee329c541e94072496" title="Evaluate an expression as an lvalue. This can be legitimately called on expressions which are not glv...">EvaluateLValue</a>(Object, This, Info);</div>
+<div class="line"><a name="l02912"></a><span class="lineno"> 2912</span> </div>
+<div class="line"><a name="l02913"></a><span class="lineno"> 2913</span>   <span class="keywordflow">if</span> (Object-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>()-><a class="code" href="classclang_1_1Type.html#a67864aaa7a3c3a3738d57ae21a636942">isLiteralType</a>(Info.Ctx))</div>
+<div class="line"><a name="l02914"></a><span class="lineno"> 2914</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a4995c316e40fd6838441461f13369a5d" title="Evaluate an expression of record type as a temporary.">EvaluateTemporary</a>(Object, This, Info);</div>
+<div class="line"><a name="l02915"></a><span class="lineno"> 2915</span> </div>
+<div class="line"><a name="l02916"></a><span class="lineno"> 2916</span>   <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l02917"></a><span class="lineno"> 2917</span> }</div>
+<div class="line"><a name="l02918"></a><span class="lineno"> 2918</span> <span class="comment"></span></div>
+<div class="line"><a name="l02919"></a><span class="lineno"> 2919</span> <span class="comment">/// HandleMemberPointerAccess - Evaluate a member access operation and build an</span></div>
+<div class="line"><a name="l02920"></a><span class="lineno"> 2920</span> <span class="comment">/// lvalue referring to the result.</span></div>
+<div class="line"><a name="l02921"></a><span class="lineno"> 2921</span> <span class="comment">///</span></div>
+<div class="line"><a name="l02922"></a><span class="lineno"> 2922</span> <span class="comment">/// \param Info - Information about the ongoing evaluation.</span></div>
+<div class="line"><a name="l02923"></a><span class="lineno"> 2923</span> <span class="comment">/// \param LV - An lvalue referring to the base of the member pointer.</span></div>
+<div class="line"><a name="l02924"></a><span class="lineno"> 2924</span> <span class="comment">/// \param RHS - The member pointer expression.</span></div>
+<div class="line"><a name="l02925"></a><span class="lineno"> 2925</span> <span class="comment">/// \param IncludeMember - Specifies whether the member itself is included in</span></div>
+<div class="line"><a name="l02926"></a><span class="lineno"> 2926</span> <span class="comment">///        the resulting LValue subobject designator. This is not possible when</span></div>
+<div class="line"><a name="l02927"></a><span class="lineno"> 2927</span> <span class="comment">///        creating a bound member function.</span></div>
+<div class="line"><a name="l02928"></a><span class="lineno"> 2928</span> <span class="comment">/// \return The field or method declaration to which the member pointer refers,</span></div>
+<div class="line"><a name="l02929"></a><span class="lineno"> 2929</span> <span class="comment">///         or 0 if evaluation fails.</span></div>
+<div class="line"><a name="l02930"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a3c2d02698568253feb7566e81ba91aae"> 2930</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *<a class="code" href="ExprConstant_8cpp.html#a3c2d02698568253feb7566e81ba91aae">HandleMemberPointerAccess</a>(EvalInfo &Info,</div>
+<div class="line"><a name="l02931"></a><span class="lineno"> 2931</span>                                                   <a class="code" href="classclang_1_1QualType.html">QualType</a> LVType,</div>
+<div class="line"><a name="l02932"></a><span class="lineno"> 2932</span>                                                   LValue &LV,</div>
+<div class="line"><a name="l02933"></a><span class="lineno"> 2933</span>                                                   <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *RHS,</div>
+<div class="line"><a name="l02934"></a><span class="lineno"> 2934</span>                                                   <span class="keywordtype">bool</span> IncludeMember = <span class="keyword">true</span>) {</div>
+<div class="line"><a name="l02935"></a><span class="lineno"> 2935</span>   MemberPtr MemPtr;</div>
+<div class="line"><a name="l02936"></a><span class="lineno"> 2936</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a03b4f6d01a4624cecbccf8078d2de75a">EvaluateMemberPointer</a>(RHS, MemPtr, Info))</div>
+<div class="line"><a name="l02937"></a><span class="lineno"> 2937</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02938"></a><span class="lineno"> 2938</span> </div>
+<div class="line"><a name="l02939"></a><span class="lineno"> 2939</span>   <span class="comment">// C++11 [expr.mptr.oper]p6: If the second operand is the null pointer to</span></div>
+<div class="line"><a name="l02940"></a><span class="lineno"> 2940</span>   <span class="comment">// member value, the behavior is undefined.</span></div>
+<div class="line"><a name="l02941"></a><span class="lineno"> 2941</span>   <span class="keywordflow">if</span> (!MemPtr.getDecl()) {</div>
+<div class="line"><a name="l02942"></a><span class="lineno"> 2942</span>     <span class="comment">// FIXME: Specific diagnostic.</span></div>
+<div class="line"><a name="l02943"></a><span class="lineno"> 2943</span>     Info.Diag(RHS);</div>
+<div class="line"><a name="l02944"></a><span class="lineno"> 2944</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02945"></a><span class="lineno"> 2945</span>   }</div>
+<div class="line"><a name="l02946"></a><span class="lineno"> 2946</span> </div>
+<div class="line"><a name="l02947"></a><span class="lineno"> 2947</span>   <span class="keywordflow">if</span> (MemPtr.isDerivedMember()) {</div>
+<div class="line"><a name="l02948"></a><span class="lineno"> 2948</span>     <span class="comment">// This is a member of some derived class. Truncate LV appropriately.</span></div>
+<div class="line"><a name="l02949"></a><span class="lineno"> 2949</span>     <span class="comment">// The end of the derived-to-base path for the base object must match the</span></div>
+<div class="line"><a name="l02950"></a><span class="lineno"> 2950</span>     <span class="comment">// derived-to-base path for the member pointer.</span></div>
+<div class="line"><a name="l02951"></a><span class="lineno"> 2951</span>     <span class="keywordflow">if</span> (LV.Designator.MostDerivedPathLength + MemPtr.Path.size() ></div>
+<div class="line"><a name="l02952"></a><span class="lineno"> 2952</span>         LV.Designator.Entries.size()) {</div>
+<div class="line"><a name="l02953"></a><span class="lineno"> 2953</span>       Info.Diag(RHS);</div>
+<div class="line"><a name="l02954"></a><span class="lineno"> 2954</span>       <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02955"></a><span class="lineno"> 2955</span>     }</div>
+<div class="line"><a name="l02956"></a><span class="lineno"> 2956</span>     <span class="keywordtype">unsigned</span> PathLengthToMember =</div>
+<div class="line"><a name="l02957"></a><span class="lineno"> 2957</span>         LV.Designator.Entries.size() - MemPtr.Path.size();</div>
+<div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 0, N = MemPtr.Path.size(); I != N; ++I) {</div>
+<div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *LVDecl = getAsBaseClass(</div>
+<div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>           LV.Designator.Entries[PathLengthToMember + I]);</div>
+<div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *MPDecl = MemPtr.Path[I];</div>
+<div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>       <span class="keywordflow">if</span> (LVDecl-><a class="code" href="classclang_1_1CXXRecordDecl.html#a38f531b4822da3071fe56cc210978afd" title="Retrieves the "canonical" declaration of the given declaration.">getCanonicalDecl</a>() != MPDecl-><a class="code" href="classclang_1_1CXXRecordDecl.html#a38f531b4822da3071fe56cc210978afd" title="Retrieves the "canonical" declaration of the given declaration.">getCanonicalDecl</a>()) {</div>
+<div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>         Info.Diag(RHS);</div>
+<div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>         <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>       }</div>
+<div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>     }</div>
+<div class="line"><a name="l02967"></a><span class="lineno"> 2967</span> </div>
+<div class="line"><a name="l02968"></a><span class="lineno"> 2968</span>     <span class="comment">// Truncate the lvalue to the appropriate derived class.</span></div>
+<div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a58371a6c6d61fb8c0b1cb9696f6e4426">CastToDerivedClass</a>(Info, RHS, LV, MemPtr.getContainingRecord(),</div>
+<div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>                             PathLengthToMember))</div>
+<div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>       <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>   } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!MemPtr.Path.empty()) {</div>
+<div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>     <span class="comment">// Extend the LValue path with the member pointer's path.</span></div>
+<div class="line"><a name="l02974"></a><span class="lineno"> 2974</span>     LV.Designator.Entries.reserve(LV.Designator.Entries.size() +</div>
+<div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>                                   MemPtr.Path.size() + IncludeMember);</div>
+<div class="line"><a name="l02976"></a><span class="lineno"> 2976</span> </div>
+<div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>     <span class="comment">// Walk down to the appropriate base class.</span></div>
+<div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1PointerType.html">PointerType</a> *PT = LVType-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1PointerType.html">PointerType</a>>())</div>
+<div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>       LVType = PT-><a class="code" href="classclang_1_1Type.html#a3a0edf987679f04072a1243b6118add1">getPointeeType</a>();</div>
+<div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *RD = LVType-><a class="code" href="classclang_1_1Type.html#a7dc6c3dbc192ad98871c3cc484376b9a" title="Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...">getAsCXXRecordDecl</a>();</div>
+<div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>     assert(RD && <span class="stringliteral">"member pointer access on non-class-type expression"</span>);</div>
+<div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>     <span class="comment">// The first class in the path is that of the lvalue.</span></div>
+<div class="line"><a name="l02983"></a><span class="lineno"> 2983</span>     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> I = 1, N = MemPtr.Path.size(); I != N; ++I) {</div>
+<div class="line"><a name="l02984"></a><span class="lineno"> 2984</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *Base = MemPtr.Path[N - I - 1];</div>
+<div class="line"><a name="l02985"></a><span class="lineno"> 2985</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#adb3af383e7703d8c00b31b22640001f8">HandleLValueDirectBase</a>(Info, RHS, LV, RD, Base))</div>
+<div class="line"><a name="l02986"></a><span class="lineno"> 2986</span>         <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02987"></a><span class="lineno"> 2987</span>       RD = Base;</div>
+<div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>     }</div>
+<div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>     <span class="comment">// Finally cast to the class containing the member.</span></div>
+<div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#adb3af383e7703d8c00b31b22640001f8">HandleLValueDirectBase</a>(Info, RHS, LV, RD,</div>
+<div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>                                 MemPtr.getContainingRecord()))</div>
+<div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>       <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>   }</div>
+<div class="line"><a name="l02994"></a><span class="lineno"> 2994</span> </div>
+<div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>   <span class="comment">// Add the member. Note that we cannot build bound member functions here.</span></div>
+<div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>   <span class="keywordflow">if</span> (IncludeMember) {</div>
+<div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *FD = dyn_cast<FieldDecl>(MemPtr.getDecl())) {</div>
+<div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#acca3041de498c3210ff1597c2dcb6217">HandleLValueMember</a>(Info, RHS, LV, FD))</div>
+<div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>         <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1IndirectFieldDecl.html">IndirectFieldDecl</a> *IFD =</div>
+<div class="line"><a name="l03001"></a><span class="lineno"> 3001</span>                  dyn_cast<IndirectFieldDecl>(MemPtr.getDecl())) {</div>
+<div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a401b8acb82ad47bf5270135fcb6aacb4" title="Update LVal to refer to the given indirect field.">HandleLValueIndirectMember</a>(Info, RHS, LV, IFD))</div>
+<div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>         <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>       llvm_unreachable(<span class="stringliteral">"can't construct reference to bound member function"</span>);</div>
+<div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>     }</div>
+<div class="line"><a name="l03007"></a><span class="lineno"> 3007</span>   }</div>
+<div class="line"><a name="l03008"></a><span class="lineno"> 3008</span> </div>
+<div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>   <span class="keywordflow">return</span> MemPtr.getDecl();</div>
+<div class="line"><a name="l03010"></a><span class="lineno"> 3010</span> }</div>
+<div class="line"><a name="l03011"></a><span class="lineno"> 3011</span> </div>
+<div class="line"><a name="l03012"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a447f21476c885c3ebd61176397bb035c"> 3012</a></span> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classclang_1_1ValueDecl.html">ValueDecl</a> *<a class="code" href="ExprConstant_8cpp.html#a3c2d02698568253feb7566e81ba91aae">HandleMemberPointerAccess</a>(EvalInfo &Info,</div>
+<div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>                                                   <span class="keyword">const</span> <a class="code" href="classclang_1_1BinaryOperator.html" title="A builtin binary operation expression such as "x + y" or "x <= y".">BinaryOperator</a> *BO,</div>
+<div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>                                                   LValue &LV,</div>
+<div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>                                                   <span class="keywordtype">bool</span> IncludeMember = <span class="keyword">true</span>) {</div>
+<div class="line"><a name="l03016"></a><span class="lineno"> 3016</span>   assert(BO-><a class="code" href="classclang_1_1BinaryOperator.html#a497174c5cc2816aa3a3f29e12dd93165">getOpcode</a>() == <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1a31e63255bd536c2d74a66ac47160ed53">BO_PtrMemD</a> || BO-><a class="code" href="classclang_1_1BinaryOperator.html#a497174c5cc2816aa3a3f29e12dd93165">getOpcode</a>() == <a class="code" href="namespaceclang.html#a443b552ee80020cfeb2b86c99e7f85e1ae432d0b89cd5293af333b8854e20fd40">BO_PtrMemI</a>);</div>
+<div class="line"><a name="l03017"></a><span class="lineno"> 3017</span> </div>
+<div class="line"><a name="l03018"></a><span class="lineno"> 3018</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a6db8def58d4ac8956c059e5a581c7d0f" title="Build an lvalue for the object argument of a member function call.">EvaluateObjectArgument</a>(Info, BO-><a class="code" href="classclang_1_1BinaryOperator.html#ad8b108ac1a7795b9f388d8dece6b8924">getLHS</a>(), LV)) {</div>
+<div class="line"><a name="l03019"></a><span class="lineno"> 3019</span>     <span class="keywordflow">if</span> (Info.keepEvaluatingAfterFailure()) {</div>
+<div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>       MemberPtr MemPtr;</div>
+<div class="line"><a name="l03021"></a><span class="lineno"> 3021</span>       <a class="code" href="ExprConstant_8cpp.html#a03b4f6d01a4624cecbccf8078d2de75a">EvaluateMemberPointer</a>(BO-><a class="code" href="classclang_1_1BinaryOperator.html#a1ab10aae0ffa01be5d1a979e6da285e6">getRHS</a>(), MemPtr, Info);</div>
+<div class="line"><a name="l03022"></a><span class="lineno"> 3022</span>     }</div>
+<div class="line"><a name="l03023"></a><span class="lineno"> 3023</span>     <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l03024"></a><span class="lineno"> 3024</span>   }</div>
+<div class="line"><a name="l03025"></a><span class="lineno"> 3025</span> </div>
+<div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>   <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a3c2d02698568253feb7566e81ba91aae">HandleMemberPointerAccess</a>(Info, BO-><a class="code" href="classclang_1_1BinaryOperator.html#ad8b108ac1a7795b9f388d8dece6b8924">getLHS</a>()-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>(), LV,</div>
+<div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>                                    BO-><a class="code" href="classclang_1_1BinaryOperator.html#a1ab10aae0ffa01be5d1a979e6da285e6">getRHS</a>(), IncludeMember);</div>
+<div class="line"><a name="l03028"></a><span class="lineno"> 3028</span> }</div>
+<div class="line"><a name="l03029"></a><span class="lineno"> 3029</span> <span class="comment"></span></div>
+<div class="line"><a name="l03030"></a><span class="lineno"> 3030</span> <span class="comment">/// HandleBaseToDerivedCast - Apply the given base-to-derived cast operation on</span></div>
+<div class="line"><a name="l03031"></a><span class="lineno"> 3031</span> <span class="comment">/// the provided lvalue, which currently refers to the base object.</span></div>
+<div class="line"><a name="l03032"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a4d725cd99e7dac0e4b130789caf7904a"> 3032</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a4d725cd99e7dac0e4b130789caf7904a">HandleBaseToDerivedCast</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1CastExpr.html">CastExpr</a> *E,</div>
+<div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>                                     LValue &Result) {</div>
+<div class="line"><a name="l03034"></a><span class="lineno"> 3034</span>   SubobjectDesignator &D = Result.Designator;</div>
+<div class="line"><a name="l03035"></a><span class="lineno"> 3035</span>   <span class="keywordflow">if</span> (D.Invalid || !Result.checkNullPointer(Info, E, CSK_Derived))</div>
+<div class="line"><a name="l03036"></a><span class="lineno"> 3036</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> </div>
+<div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>   <a class="code" href="classclang_1_1QualType.html">QualType</a> TargetQT = E-><a class="code" href="classclang_1_1Expr.html#a3dd8850a4ad8a5b5f595dd9e9446187b">getType</a>();</div>
+<div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1PointerType.html">PointerType</a> *PT = TargetQT-><a class="code" href="classclang_1_1Type.html#a12103ea8bee9506930287bab68a08569">getAs</a><<a class="code" href="classclang_1_1PointerType.html">PointerType</a>>())</div>
+<div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>     TargetQT = PT-><a class="code" href="classclang_1_1Type.html#a3a0edf987679f04072a1243b6118add1">getPointeeType</a>();</div>
+<div class="line"><a name="l03041"></a><span class="lineno"> 3041</span> </div>
+<div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>   <span class="comment">// Check this cast lands within the final derived-to-base subobject path.</span></div>
+<div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>   <span class="keywordflow">if</span> (D.MostDerivedPathLength + E-><a class="code" href="classclang_1_1CastExpr.html#a344ef64f8d83d6473d0ce5661531c4b3">path_size</a>() > D.Entries.size()) {</div>
+<div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>     Info.CCEDiag(E, diag::note_constexpr_invalid_downcast)</div>
+<div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>       << D.MostDerivedType << TargetQT;</div>
+<div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03047"></a><span class="lineno"> 3047</span>   }</div>
+<div class="line"><a name="l03048"></a><span class="lineno"> 3048</span> </div>
+<div class="line"><a name="l03049"></a><span class="lineno"> 3049</span>   <span class="comment">// Check the type of the final cast. We don't need to check the path,</span></div>
+<div class="line"><a name="l03050"></a><span class="lineno"> 3050</span>   <span class="comment">// since a cast can only be formed if the path is unique.</span></div>
+<div class="line"><a name="l03051"></a><span class="lineno"> 3051</span>   <span class="keywordtype">unsigned</span> NewEntriesSize = D.Entries.size() - E-><a class="code" href="classclang_1_1CastExpr.html#a344ef64f8d83d6473d0ce5661531c4b3">path_size</a>();</div>
+<div class="line"><a name="l03052"></a><span class="lineno"> 3052</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *TargetType = TargetQT-><a class="code" href="classclang_1_1Type.html#a7dc6c3dbc192ad98871c3cc484376b9a" title="Retrieves the CXXRecordDecl that this type refers to, either because the type is a RecordType or beca...">getAsCXXRecordDecl</a>();</div>
+<div class="line"><a name="l03053"></a><span class="lineno"> 3053</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *FinalType;</div>
+<div class="line"><a name="l03054"></a><span class="lineno"> 3054</span>   <span class="keywordflow">if</span> (NewEntriesSize == D.MostDerivedPathLength)</div>
+<div class="line"><a name="l03055"></a><span class="lineno"> 3055</span>     FinalType = D.MostDerivedType->getAsCXXRecordDecl();</div>
+<div class="line"><a name="l03056"></a><span class="lineno"> 3056</span>   <span class="keywordflow">else</span></div>
+<div class="line"><a name="l03057"></a><span class="lineno"> 3057</span>     FinalType = getAsBaseClass(D.Entries[NewEntriesSize - 1]);</div>
+<div class="line"><a name="l03058"></a><span class="lineno"> 3058</span>   <span class="keywordflow">if</span> (FinalType-><a class="code" href="classclang_1_1CXXRecordDecl.html#a38f531b4822da3071fe56cc210978afd" title="Retrieves the "canonical" declaration of the given declaration.">getCanonicalDecl</a>() != TargetType-><a class="code" href="classclang_1_1CXXRecordDecl.html#a38f531b4822da3071fe56cc210978afd" title="Retrieves the "canonical" declaration of the given declaration.">getCanonicalDecl</a>()) {</div>
+<div class="line"><a name="l03059"></a><span class="lineno"> 3059</span>     Info.CCEDiag(E, diag::note_constexpr_invalid_downcast)</div>
+<div class="line"><a name="l03060"></a><span class="lineno"> 3060</span>       << D.MostDerivedType << TargetQT;</div>
+<div class="line"><a name="l03061"></a><span class="lineno"> 3061</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03062"></a><span class="lineno"> 3062</span>   }</div>
+<div class="line"><a name="l03063"></a><span class="lineno"> 3063</span> </div>
+<div class="line"><a name="l03064"></a><span class="lineno"> 3064</span>   <span class="comment">// Truncate the lvalue to the appropriate derived class.</span></div>
+<div class="line"><a name="l03065"></a><span class="lineno"> 3065</span>   <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a58371a6c6d61fb8c0b1cb9696f6e4426">CastToDerivedClass</a>(Info, E, Result, TargetType, NewEntriesSize);</div>
+<div class="line"><a name="l03066"></a><span class="lineno"> 3066</span> }</div>
+<div class="line"><a name="l03067"></a><span class="lineno"> 3067</span> </div>
+<div class="line"><a name="l03068"></a><span class="lineno"> 3068</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l03069"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611"> 3069</a></span> <span class="keyword">enum</span> <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> {<span class="comment"></span></div>
+<div class="line"><a name="l03070"></a><span class="lineno"> 3070</span> <span class="comment">  /// Evaluation failed.</span></div>
+<div class="line"><a name="l03071"></a><span class="lineno"> 3071</span> <span class="comment"></span>  ESR_Failed,<span class="comment"></span></div>
+<div class="line"><a name="l03072"></a><span class="lineno"> 3072</span> <span class="comment">  /// Hit a 'return' statement.</span></div>
+<div class="line"><a name="l03073"></a><span class="lineno"> 3073</span> <span class="comment"></span>  ESR_Returned,<span class="comment"></span></div>
+<div class="line"><a name="l03074"></a><span class="lineno"> 3074</span> <span class="comment">  /// Evaluation succeeded.</span></div>
+<div class="line"><a name="l03075"></a><span class="lineno"> 3075</span> <span class="comment"></span>  ESR_Succeeded,<span class="comment"></span></div>
+<div class="line"><a name="l03076"></a><span class="lineno"> 3076</span> <span class="comment">  /// Hit a 'continue' statement.</span></div>
+<div class="line"><a name="l03077"></a><span class="lineno"> 3077</span> <span class="comment"></span>  ESR_Continue,<span class="comment"></span></div>
+<div class="line"><a name="l03078"></a><span class="lineno"> 3078</span> <span class="comment">  /// Hit a 'break' statement.</span></div>
+<div class="line"><a name="l03079"></a><span class="lineno"> 3079</span> <span class="comment"></span>  ESR_Break,<span class="comment"></span></div>
+<div class="line"><a name="l03080"></a><span class="lineno"> 3080</span> <span class="comment">  /// Still scanning for 'case' or 'default' statement.</span></div>
+<div class="line"><a name="l03081"></a><span class="lineno"> 3081</span> <span class="comment"></span>  ESR_CaseNotFound</div>
+<div class="line"><a name="l03082"></a><span class="lineno"> 3082</span> };</div>
+<div class="line"><a name="l03083"></a><span class="lineno"> 3083</span> }</div>
+<div class="line"><a name="l03084"></a><span class="lineno"> 3084</span> </div>
+<div class="line"><a name="l03085"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ad539e720de20b9f6420f164240c3d8fa"> 3085</a></span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ad539e720de20b9f6420f164240c3d8fa">EvaluateDecl</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1Decl.html">Decl</a> *D) {</div>
+<div class="line"><a name="l03086"></a><span class="lineno"> 3086</span>   <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *VD = dyn_cast<VarDecl>(D)) {</div>
+<div class="line"><a name="l03087"></a><span class="lineno"> 3087</span>     <span class="comment">// We don't need to evaluate the initializer for a static local.</span></div>
+<div class="line"><a name="l03088"></a><span class="lineno"> 3088</span>     <span class="keywordflow">if</span> (!VD->hasLocalStorage())</div>
+<div class="line"><a name="l03089"></a><span class="lineno"> 3089</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03090"></a><span class="lineno"> 3090</span> </div>
+<div class="line"><a name="l03091"></a><span class="lineno"> 3091</span>     LValue Result;</div>
+<div class="line"><a name="l03092"></a><span class="lineno"> 3092</span>     Result.set(VD, Info.CurrentCall->Index);</div>
+<div class="line"><a name="l03093"></a><span class="lineno"> 3093</span>     <a class="code" href="classclang_1_1APValue.html">APValue</a> &Val = Info.CurrentCall->createTemporary(VD, <span class="keyword">true</span>);</div>
+<div class="line"><a name="l03094"></a><span class="lineno"> 3094</span> </div>
+<div class="line"><a name="l03095"></a><span class="lineno"> 3095</span>     <span class="keywordflow">if</span> (!VD->getInit()) {</div>
+<div class="line"><a name="l03096"></a><span class="lineno"> 3096</span>       Info.Diag(D-><a class="code" href="classclang_1_1Decl.html#ae66a13d419e9cad2f6c3643bfce45c54">getLocStart</a>(), diag::note_constexpr_uninitialized)</div>
+<div class="line"><a name="l03097"></a><span class="lineno"> 3097</span>         << <span class="keyword">false</span> << VD->getType();</div>
+<div class="line"><a name="l03098"></a><span class="lineno"> 3098</span>       Val = <a class="code" href="classclang_1_1APValue.html">APValue</a>();</div>
+<div class="line"><a name="l03099"></a><span class="lineno"> 3099</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03100"></a><span class="lineno"> 3100</span>     }</div>
+<div class="line"><a name="l03101"></a><span class="lineno"> 3101</span> </div>
+<div class="line"><a name="l03102"></a><span class="lineno"> 3102</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#abce909fdfbd15b0aef03182b118a9445">EvaluateInPlace</a>(Val, Info, Result, VD->getInit())) {</div>
+<div class="line"><a name="l03103"></a><span class="lineno"> 3103</span>       <span class="comment">// Wipe out any partially-computed value, to allow tracking that this</span></div>
+<div class="line"><a name="l03104"></a><span class="lineno"> 3104</span>       <span class="comment">// evaluation failed.</span></div>
+<div class="line"><a name="l03105"></a><span class="lineno"> 3105</span>       Val = <a class="code" href="classclang_1_1APValue.html">APValue</a>();</div>
+<div class="line"><a name="l03106"></a><span class="lineno"> 3106</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03107"></a><span class="lineno"> 3107</span>     }</div>
+<div class="line"><a name="l03108"></a><span class="lineno"> 3108</span>   }</div>
+<div class="line"><a name="l03109"></a><span class="lineno"> 3109</span> </div>
+<div class="line"><a name="l03110"></a><span class="lineno"> 3110</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03111"></a><span class="lineno"> 3111</span> }</div>
+<div class="line"><a name="l03112"></a><span class="lineno"> 3112</span> <span class="comment"></span></div>
+<div class="line"><a name="l03113"></a><span class="lineno"> 3113</span> <span class="comment">/// Evaluate a condition (either a variable declaration or an expression).</span></div>
+<div class="line"><a name="l03114"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#acec1496fe2c90f957d7915d0858a0ddd"> 3114</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#acec1496fe2c90f957d7915d0858a0ddd" title="Evaluate a condition (either a variable declaration or an expression).">EvaluateCond</a>(EvalInfo &Info, <span class="keyword">const</span> <a class="code" href="classclang_1_1VarDecl.html">VarDecl</a> *CondDecl,</div>
+<div class="line"><a name="l03115"></a><span class="lineno"> 3115</span>                          <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *Cond, <span class="keywordtype">bool</span> &Result) {</div>
+<div class="line"><a name="l03116"></a><span class="lineno"> 3116</span>   FullExpressionRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03117"></a><span class="lineno"> 3117</span>   <span class="keywordflow">if</span> (CondDecl && !<a class="code" href="ExprConstant_8cpp.html#ad539e720de20b9f6420f164240c3d8fa">EvaluateDecl</a>(Info, CondDecl))</div>
+<div class="line"><a name="l03118"></a><span class="lineno"> 3118</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03119"></a><span class="lineno"> 3119</span>   <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#a8cb5646eff46aaf7f593e1bc795b78a0">EvaluateAsBooleanCondition</a>(Cond, Result, Info);</div>
+<div class="line"><a name="l03120"></a><span class="lineno"> 3120</span> }</div>
+<div class="line"><a name="l03121"></a><span class="lineno"> 3121</span> </div>
+<div class="line"><a name="l03122"></a><span class="lineno"> 3122</span> <span class="keyword">static</span> <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Result, EvalInfo &Info,</div>
+<div class="line"><a name="l03123"></a><span class="lineno"> 3123</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> *S, <span class="keyword">const</span> <a class="code" href="classclang_1_1SwitchCase.html">SwitchCase</a> *SC = 0);</div>
+<div class="line"><a name="l03124"></a><span class="lineno"> 3124</span> <span class="comment"></span></div>
+<div class="line"><a name="l03125"></a><span class="lineno"> 3125</span> <span class="comment">/// Evaluate the body of a loop, and translate the result as appropriate.</span></div>
+<div class="line"><a name="l03126"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df"> 3126</a></span> <span class="comment"></span><span class="keyword">static</span> <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> <a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df" title="Evaluate the body of a loop, and translate the result as appropriate.">EvaluateLoopBody</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Result, EvalInfo &Info,</div>
+<div class="line"><a name="l03127"></a><span class="lineno"> 3127</span>                                        <span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> *Body,</div>
+<div class="line"><a name="l03128"></a><span class="lineno"> 3128</span>                                        <span class="keyword">const</span> <a class="code" href="classclang_1_1SwitchCase.html">SwitchCase</a> *Case = 0) {</div>
+<div class="line"><a name="l03129"></a><span class="lineno"> 3129</span>   BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03130"></a><span class="lineno"> 3130</span>   <span class="keywordflow">switch</span> (<a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, Body, Case)) {</div>
+<div class="line"><a name="l03131"></a><span class="lineno"> 3131</span>   <span class="keywordflow">case</span> ESR_Break:</div>
+<div class="line"><a name="l03132"></a><span class="lineno"> 3132</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03133"></a><span class="lineno"> 3133</span>   <span class="keywordflow">case</span> ESR_Succeeded:</div>
+<div class="line"><a name="l03134"></a><span class="lineno"> 3134</span>   <span class="keywordflow">case</span> ESR_Continue:</div>
+<div class="line"><a name="l03135"></a><span class="lineno"> 3135</span>     <span class="keywordflow">return</span> ESR_Continue;</div>
+<div class="line"><a name="l03136"></a><span class="lineno"> 3136</span>   <span class="keywordflow">case</span> ESR_Failed:</div>
+<div class="line"><a name="l03137"></a><span class="lineno"> 3137</span>   <span class="keywordflow">case</span> ESR_Returned:</div>
+<div class="line"><a name="l03138"></a><span class="lineno"> 3138</span>   <span class="keywordflow">case</span> ESR_CaseNotFound:</div>
+<div class="line"><a name="l03139"></a><span class="lineno"> 3139</span>     <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03140"></a><span class="lineno"> 3140</span>   }</div>
+<div class="line"><a name="l03141"></a><span class="lineno"> 3141</span>   llvm_unreachable(<span class="stringliteral">"Invalid EvalStmtResult!"</span>);</div>
+<div class="line"><a name="l03142"></a><span class="lineno"> 3142</span> }</div>
+<div class="line"><a name="l03143"></a><span class="lineno"> 3143</span> <span class="comment"></span></div>
+<div class="line"><a name="l03144"></a><span class="lineno"> 3144</span> <span class="comment">/// Evaluate a switch statement.</span></div>
+<div class="line"><a name="l03145"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#aaaf93289374aff131c39e38a722bc9a3"> 3145</a></span> <span class="comment"></span><span class="keyword">static</span> <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> <a class="code" href="ExprConstant_8cpp.html#aaaf93289374aff131c39e38a722bc9a3" title="Evaluate a switch statement.">EvaluateSwitch</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Result, EvalInfo &Info,</div>
+<div class="line"><a name="l03146"></a><span class="lineno"> 3146</span>                                      <span class="keyword">const</span> <a class="code" href="classclang_1_1SwitchStmt.html">SwitchStmt</a> *SS) {</div>
+<div class="line"><a name="l03147"></a><span class="lineno"> 3147</span>   BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03148"></a><span class="lineno"> 3148</span> </div>
+<div class="line"><a name="l03149"></a><span class="lineno"> 3149</span>   <span class="comment">// Evaluate the switch condition.</span></div>
+<div class="line"><a name="l03150"></a><span class="lineno"> 3150</span>   APSInt <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>;</div>
+<div class="line"><a name="l03151"></a><span class="lineno"> 3151</span>   {</div>
+<div class="line"><a name="l03152"></a><span class="lineno"> 3152</span>     FullExpressionRAII Scope(Info);</div>
+<div class="line"><a name="l03153"></a><span class="lineno"> 3153</span>     <span class="keywordflow">if</span> (SS-><a class="code" href="classclang_1_1SwitchStmt.html#add328aa8e549b60b247000ee8b4395be" title="Retrieve the variable declared in this "switch" statement, if any.">getConditionVariable</a>() &&</div>
+<div class="line"><a name="l03154"></a><span class="lineno"> 3154</span>         !<a class="code" href="ExprConstant_8cpp.html#ad539e720de20b9f6420f164240c3d8fa">EvaluateDecl</a>(Info, SS-><a class="code" href="classclang_1_1SwitchStmt.html#add328aa8e549b60b247000ee8b4395be" title="Retrieve the variable declared in this "switch" statement, if any.">getConditionVariable</a>()))</div>
+<div class="line"><a name="l03155"></a><span class="lineno"> 3155</span>       <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03156"></a><span class="lineno"> 3156</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a7021d3c1598e2c99eb8cbeace33b92f3">EvaluateInteger</a>(SS-><a class="code" href="classclang_1_1SwitchStmt.html#a7404791c1f6c98cca9a60f681c6f9d32">getCond</a>(), <a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>, Info))</div>
+<div class="line"><a name="l03157"></a><span class="lineno"> 3157</span>       <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03158"></a><span class="lineno"> 3158</span>   }</div>
+<div class="line"><a name="l03159"></a><span class="lineno"> 3159</span> </div>
+<div class="line"><a name="l03160"></a><span class="lineno"> 3160</span>   <span class="comment">// Find the switch case corresponding to the value of the condition.</span></div>
+<div class="line"><a name="l03161"></a><span class="lineno"> 3161</span>   <span class="comment">// FIXME: Cache this lookup.</span></div>
+<div class="line"><a name="l03162"></a><span class="lineno"> 3162</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1SwitchCase.html">SwitchCase</a> *Found = 0;</div>
+<div class="line"><a name="l03163"></a><span class="lineno"> 3163</span>   <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1SwitchCase.html">SwitchCase</a> *SC = SS-><a class="code" href="classclang_1_1SwitchStmt.html#ace9b2bce71bc2eb328253001c230f011">getSwitchCaseList</a>(); SC;</div>
+<div class="line"><a name="l03164"></a><span class="lineno"> 3164</span>        SC = SC-><a class="code" href="classclang_1_1SwitchCase.html#ac260de1f5de7d9e5c5cba896d7f2813f">getNextSwitchCase</a>()) {</div>
+<div class="line"><a name="l03165"></a><span class="lineno"> 3165</span>     <span class="keywordflow">if</span> (isa<DefaultStmt>(SC)) {</div>
+<div class="line"><a name="l03166"></a><span class="lineno"> 3166</span>       Found = SC;</div>
+<div class="line"><a name="l03167"></a><span class="lineno"> 3167</span>       <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l03168"></a><span class="lineno"> 3168</span>     }</div>
+<div class="line"><a name="l03169"></a><span class="lineno"> 3169</span> </div>
+<div class="line"><a name="l03170"></a><span class="lineno"> 3170</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CaseStmt.html">CaseStmt</a> *CS = cast<CaseStmt>(SC);</div>
+<div class="line"><a name="l03171"></a><span class="lineno"> 3171</span>     APSInt LHS = CS-><a class="code" href="classclang_1_1CaseStmt.html#a8188cfacff6e4d7aaeb709a5a4a80a9e">getLHS</a>()-><a class="code" href="classclang_1_1Expr.html#a9a303252fadd3163f7349daa10955aa4">EvaluateKnownConstInt</a>(Info.Ctx);</div>
+<div class="line"><a name="l03172"></a><span class="lineno"> 3172</span>     APSInt RHS = CS-><a class="code" href="classclang_1_1CaseStmt.html#a96cfe2aca9a2248a0f493f9e172de2e1">getRHS</a>() ? CS-><a class="code" href="classclang_1_1CaseStmt.html#a96cfe2aca9a2248a0f493f9e172de2e1">getRHS</a>()-><a class="code" href="classclang_1_1Expr.html#a9a303252fadd3163f7349daa10955aa4">EvaluateKnownConstInt</a>(Info.Ctx)</div>
+<div class="line"><a name="l03173"></a><span class="lineno"> 3173</span>                               : LHS;</div>
+<div class="line"><a name="l03174"></a><span class="lineno"> 3174</span>     <span class="keywordflow">if</span> (LHS <= Value && Value <= RHS) {</div>
+<div class="line"><a name="l03175"></a><span class="lineno"> 3175</span>       Found = SC;</div>
+<div class="line"><a name="l03176"></a><span class="lineno"> 3176</span>       <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03177"></a><span class="lineno"> 3177</span>     }</div>
+<div class="line"><a name="l03178"></a><span class="lineno"> 3178</span>   }</div>
+<div class="line"><a name="l03179"></a><span class="lineno"> 3179</span> </div>
+<div class="line"><a name="l03180"></a><span class="lineno"> 3180</span>   <span class="keywordflow">if</span> (!Found)</div>
+<div class="line"><a name="l03181"></a><span class="lineno"> 3181</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03182"></a><span class="lineno"> 3182</span> </div>
+<div class="line"><a name="l03183"></a><span class="lineno"> 3183</span>   <span class="comment">// Search the switch body for the switch case and evaluate it from there.</span></div>
+<div class="line"><a name="l03184"></a><span class="lineno"> 3184</span>   <span class="keywordflow">switch</span> (<a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, SS-><a class="code" href="classclang_1_1SwitchStmt.html#abeb106525d0882bd067091b5cb6779cc">getBody</a>(), Found)) {</div>
+<div class="line"><a name="l03185"></a><span class="lineno"> 3185</span>   <span class="keywordflow">case</span> ESR_Break:</div>
+<div class="line"><a name="l03186"></a><span class="lineno"> 3186</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03187"></a><span class="lineno"> 3187</span>   <span class="keywordflow">case</span> ESR_Succeeded:</div>
+<div class="line"><a name="l03188"></a><span class="lineno"> 3188</span>   <span class="keywordflow">case</span> ESR_Continue:</div>
+<div class="line"><a name="l03189"></a><span class="lineno"> 3189</span>   <span class="keywordflow">case</span> ESR_Failed:</div>
+<div class="line"><a name="l03190"></a><span class="lineno"> 3190</span>   <span class="keywordflow">case</span> ESR_Returned:</div>
+<div class="line"><a name="l03191"></a><span class="lineno"> 3191</span>     <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03192"></a><span class="lineno"> 3192</span>   <span class="keywordflow">case</span> ESR_CaseNotFound:</div>
+<div class="line"><a name="l03193"></a><span class="lineno"> 3193</span>     <span class="comment">// This can only happen if the switch case is nested within a statement</span></div>
+<div class="line"><a name="l03194"></a><span class="lineno"> 3194</span>     <span class="comment">// expression. We have no intention of supporting that.</span></div>
+<div class="line"><a name="l03195"></a><span class="lineno"> 3195</span>     Info.Diag(Found-><a class="code" href="classclang_1_1SwitchCase.html#ab5eb91c70e63763c0d96ee47f6c3d17f">getLocStart</a>(), diag::note_constexpr_stmt_expr_unsupported);</div>
+<div class="line"><a name="l03196"></a><span class="lineno"> 3196</span>     <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03197"></a><span class="lineno"> 3197</span>   }</div>
+<div class="line"><a name="l03198"></a><span class="lineno"> 3198</span>   llvm_unreachable(<span class="stringliteral">"Invalid EvalStmtResult!"</span>);</div>
+<div class="line"><a name="l03199"></a><span class="lineno"> 3199</span> }</div>
+<div class="line"><a name="l03200"></a><span class="lineno"> 3200</span> </div>
+<div class="line"><a name="l03201"></a><span class="lineno"> 3201</span> <span class="comment">// Evaluate a statement.</span></div>
+<div class="line"><a name="l03202"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af"> 3202</a></span> <span class="keyword">static</span> <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(<a class="code" href="classclang_1_1APValue.html">APValue</a> &Result, EvalInfo &Info,</div>
+<div class="line"><a name="l03203"></a><span class="lineno"> 3203</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> *S, <span class="keyword">const</span> <a class="code" href="classclang_1_1SwitchCase.html">SwitchCase</a> *Case) {</div>
+<div class="line"><a name="l03204"></a><span class="lineno"> 3204</span>   <span class="keywordflow">if</span> (!Info.nextStep(S))</div>
+<div class="line"><a name="l03205"></a><span class="lineno"> 3205</span>     <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03206"></a><span class="lineno"> 3206</span> </div>
+<div class="line"><a name="l03207"></a><span class="lineno"> 3207</span>   <span class="comment">// If we're hunting down a 'case' or 'default' label, recurse through</span></div>
+<div class="line"><a name="l03208"></a><span class="lineno"> 3208</span>   <span class="comment">// substatements until we hit the label.</span></div>
+<div class="line"><a name="l03209"></a><span class="lineno"> 3209</span>   <span class="keywordflow">if</span> (Case) {</div>
+<div class="line"><a name="l03210"></a><span class="lineno"> 3210</span>     <span class="comment">// FIXME: We don't start the lifetime of objects whose initialization we</span></div>
+<div class="line"><a name="l03211"></a><span class="lineno"> 3211</span>     <span class="comment">// jump over. However, such objects must be of class type with a trivial</span></div>
+<div class="line"><a name="l03212"></a><span class="lineno"> 3212</span>     <span class="comment">// default constructor that initialize all subobjects, so must be empty,</span></div>
+<div class="line"><a name="l03213"></a><span class="lineno"> 3213</span>     <span class="comment">// so this almost never matters.</span></div>
+<div class="line"><a name="l03214"></a><span class="lineno"> 3214</span>     <span class="keywordflow">switch</span> (S-><a class="code" href="classclang_1_1Stmt.html#ac881a5954ff27d475c1bbab6f5d80150">getStmtClass</a>()) {</div>
+<div class="line"><a name="l03215"></a><span class="lineno"> 3215</span>     <span class="keywordflow">case</span> Stmt::CompoundStmtClass:</div>
+<div class="line"><a name="l03216"></a><span class="lineno"> 3216</span>       <span class="comment">// FIXME: Precompute which substatement of a compound statement we</span></div>
+<div class="line"><a name="l03217"></a><span class="lineno"> 3217</span>       <span class="comment">// would jump to, and go straight there rather than performing a</span></div>
+<div class="line"><a name="l03218"></a><span class="lineno"> 3218</span>       <span class="comment">// linear scan each time.</span></div>
+<div class="line"><a name="l03219"></a><span class="lineno"> 3219</span>     <span class="keywordflow">case</span> Stmt::LabelStmtClass:</div>
+<div class="line"><a name="l03220"></a><span class="lineno"> 3220</span>     <span class="keywordflow">case</span> Stmt::AttributedStmtClass:</div>
+<div class="line"><a name="l03221"></a><span class="lineno"> 3221</span>     <span class="keywordflow">case</span> Stmt::DoStmtClass:</div>
+<div class="line"><a name="l03222"></a><span class="lineno"> 3222</span>       <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03223"></a><span class="lineno"> 3223</span> </div>
+<div class="line"><a name="l03224"></a><span class="lineno"> 3224</span>     <span class="keywordflow">case</span> Stmt::CaseStmtClass:</div>
+<div class="line"><a name="l03225"></a><span class="lineno"> 3225</span>     <span class="keywordflow">case</span> Stmt::DefaultStmtClass:</div>
+<div class="line"><a name="l03226"></a><span class="lineno"> 3226</span>       <span class="keywordflow">if</span> (Case == S)</div>
+<div class="line"><a name="l03227"></a><span class="lineno"> 3227</span>         Case = 0;</div>
+<div class="line"><a name="l03228"></a><span class="lineno"> 3228</span>       <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03229"></a><span class="lineno"> 3229</span> </div>
+<div class="line"><a name="l03230"></a><span class="lineno"> 3230</span>     <span class="keywordflow">case</span> Stmt::IfStmtClass: {</div>
+<div class="line"><a name="l03231"></a><span class="lineno"> 3231</span>       <span class="comment">// FIXME: Precompute which side of an 'if' we would jump to, and go</span></div>
+<div class="line"><a name="l03232"></a><span class="lineno"> 3232</span>       <span class="comment">// straight there rather than scanning both sides.</span></div>
+<div class="line"><a name="l03233"></a><span class="lineno"> 3233</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1IfStmt.html">IfStmt</a> *IS = cast<IfStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03234"></a><span class="lineno"> 3234</span> </div>
+<div class="line"><a name="l03235"></a><span class="lineno"> 3235</span>       <span class="comment">// Wrap the evaluation in a block scope, in case it's a DeclStmt</span></div>
+<div class="line"><a name="l03236"></a><span class="lineno"> 3236</span>       <span class="comment">// preceded by our switch label.</span></div>
+<div class="line"><a name="l03237"></a><span class="lineno"> 3237</span>       BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03238"></a><span class="lineno"> 3238</span> </div>
+<div class="line"><a name="l03239"></a><span class="lineno"> 3239</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, IS-><a class="code" href="classclang_1_1IfStmt.html#adc5d1594ff597deaa6d431ce45fa8c96">getThen</a>(), Case);</div>
+<div class="line"><a name="l03240"></a><span class="lineno"> 3240</span>       <span class="keywordflow">if</span> (ESR != ESR_CaseNotFound || !IS-><a class="code" href="classclang_1_1IfStmt.html#a799cbc371f3c02319d779040c9b3ceae">getElse</a>())</div>
+<div class="line"><a name="l03241"></a><span class="lineno"> 3241</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03242"></a><span class="lineno"> 3242</span>       <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, IS-><a class="code" href="classclang_1_1IfStmt.html#a799cbc371f3c02319d779040c9b3ceae">getElse</a>(), Case);</div>
+<div class="line"><a name="l03243"></a><span class="lineno"> 3243</span>     }</div>
+<div class="line"><a name="l03244"></a><span class="lineno"> 3244</span> </div>
+<div class="line"><a name="l03245"></a><span class="lineno"> 3245</span>     <span class="keywordflow">case</span> Stmt::WhileStmtClass: {</div>
+<div class="line"><a name="l03246"></a><span class="lineno"> 3246</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR =</div>
+<div class="line"><a name="l03247"></a><span class="lineno"> 3247</span>           <a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df" title="Evaluate the body of a loop, and translate the result as appropriate.">EvaluateLoopBody</a>(Result, Info, cast<WhileStmt>(S)->getBody(), Case);</div>
+<div class="line"><a name="l03248"></a><span class="lineno"> 3248</span>       <span class="keywordflow">if</span> (ESR != ESR_Continue)</div>
+<div class="line"><a name="l03249"></a><span class="lineno"> 3249</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03250"></a><span class="lineno"> 3250</span>       <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03251"></a><span class="lineno"> 3251</span>     }</div>
+<div class="line"><a name="l03252"></a><span class="lineno"> 3252</span> </div>
+<div class="line"><a name="l03253"></a><span class="lineno"> 3253</span>     <span class="keywordflow">case</span> Stmt::ForStmtClass: {</div>
+<div class="line"><a name="l03254"></a><span class="lineno"> 3254</span>       <span class="keyword">const</span> <a class="code" href="classclang_1_1ForStmt.html">ForStmt</a> *FS = cast<ForStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03255"></a><span class="lineno"> 3255</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR =</div>
+<div class="line"><a name="l03256"></a><span class="lineno"> 3256</span>           <a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df" title="Evaluate the body of a loop, and translate the result as appropriate.">EvaluateLoopBody</a>(Result, Info, FS-><a class="code" href="classclang_1_1ForStmt.html#a6f73f050185a05d2492a48d3e0673094">getBody</a>(), Case);</div>
+<div class="line"><a name="l03257"></a><span class="lineno"> 3257</span>       <span class="keywordflow">if</span> (ESR != ESR_Continue)</div>
+<div class="line"><a name="l03258"></a><span class="lineno"> 3258</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03259"></a><span class="lineno"> 3259</span>       <span class="keywordflow">if</span> (FS-><a class="code" href="classclang_1_1ForStmt.html#a1862e5a9ace98ddef0075b43820d9528">getInc</a>()) {</div>
+<div class="line"><a name="l03260"></a><span class="lineno"> 3260</span>         FullExpressionRAII IncScope(Info);</div>
+<div class="line"><a name="l03261"></a><span class="lineno"> 3261</span>         <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a59ccfd804cf0140587b18fe8139eceea">EvaluateIgnoredValue</a>(Info, FS-><a class="code" href="classclang_1_1ForStmt.html#a1862e5a9ace98ddef0075b43820d9528">getInc</a>()))</div>
+<div class="line"><a name="l03262"></a><span class="lineno"> 3262</span>           <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03263"></a><span class="lineno"> 3263</span>       }</div>
+<div class="line"><a name="l03264"></a><span class="lineno"> 3264</span>       <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03265"></a><span class="lineno"> 3265</span>     }</div>
+<div class="line"><a name="l03266"></a><span class="lineno"> 3266</span> </div>
+<div class="line"><a name="l03267"></a><span class="lineno"> 3267</span>     <span class="keywordflow">case</span> Stmt::DeclStmtClass:</div>
+<div class="line"><a name="l03268"></a><span class="lineno"> 3268</span>       <span class="comment">// FIXME: If the variable has initialization that can't be jumped over,</span></div>
+<div class="line"><a name="l03269"></a><span class="lineno"> 3269</span>       <span class="comment">// bail out of any immediately-surrounding compound-statement too.</span></div>
+<div class="line"><a name="l03270"></a><span class="lineno"> 3270</span>     <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l03271"></a><span class="lineno"> 3271</span>       <span class="keywordflow">return</span> ESR_CaseNotFound;</div>
+<div class="line"><a name="l03272"></a><span class="lineno"> 3272</span>     }</div>
+<div class="line"><a name="l03273"></a><span class="lineno"> 3273</span>   }</div>
+<div class="line"><a name="l03274"></a><span class="lineno"> 3274</span> </div>
+<div class="line"><a name="l03275"></a><span class="lineno"> 3275</span>   <span class="keywordflow">switch</span> (S-><a class="code" href="classclang_1_1Stmt.html#ac881a5954ff27d475c1bbab6f5d80150">getStmtClass</a>()) {</div>
+<div class="line"><a name="l03276"></a><span class="lineno"> 3276</span>   <span class="keywordflow">default</span>:</div>
+<div class="line"><a name="l03277"></a><span class="lineno"> 3277</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *E = dyn_cast<Expr>(S)) {</div>
+<div class="line"><a name="l03278"></a><span class="lineno"> 3278</span>       <span class="comment">// Don't bother evaluating beyond an expression-statement which couldn't</span></div>
+<div class="line"><a name="l03279"></a><span class="lineno"> 3279</span>       <span class="comment">// be evaluated.</span></div>
+<div class="line"><a name="l03280"></a><span class="lineno"> 3280</span>       FullExpressionRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03281"></a><span class="lineno"> 3281</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a59ccfd804cf0140587b18fe8139eceea">EvaluateIgnoredValue</a>(Info, E))</div>
+<div class="line"><a name="l03282"></a><span class="lineno"> 3282</span>         <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03283"></a><span class="lineno"> 3283</span>       <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03284"></a><span class="lineno"> 3284</span>     }</div>
+<div class="line"><a name="l03285"></a><span class="lineno"> 3285</span> </div>
+<div class="line"><a name="l03286"></a><span class="lineno"> 3286</span>     Info.Diag(S-><a class="code" href="classclang_1_1Stmt.html#a0270d9cff7ed2b38acb39690b96586d2">getLocStart</a>());</div>
+<div class="line"><a name="l03287"></a><span class="lineno"> 3287</span>     <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03288"></a><span class="lineno"> 3288</span> </div>
+<div class="line"><a name="l03289"></a><span class="lineno"> 3289</span>   <span class="keywordflow">case</span> Stmt::NullStmtClass:</div>
+<div class="line"><a name="l03290"></a><span class="lineno"> 3290</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03291"></a><span class="lineno"> 3291</span> </div>
+<div class="line"><a name="l03292"></a><span class="lineno"> 3292</span>   <span class="keywordflow">case</span> Stmt::DeclStmtClass: {</div>
+<div class="line"><a name="l03293"></a><span class="lineno"> 3293</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1DeclStmt.html">DeclStmt</a> *DS = cast<DeclStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03294"></a><span class="lineno"> 3294</span>     <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1DeclStmt.html#afa787c81556cef57b0df3f11db4de056">DeclStmt::const_decl_iterator</a> DclIt = DS-><a class="code" href="classclang_1_1DeclStmt.html#a768633348948e677e5cba8191d5507be">decl_begin</a>(),</div>
+<div class="line"><a name="l03295"></a><span class="lineno"> 3295</span>            DclEnd = DS-><a class="code" href="classclang_1_1DeclStmt.html#a30441673be0ce59ad1a5ee98481d33ab">decl_end</a>(); DclIt != DclEnd; ++DclIt) {</div>
+<div class="line"><a name="l03296"></a><span class="lineno"> 3296</span>       <span class="comment">// Each declaration initialization is its own full-expression.</span></div>
+<div class="line"><a name="l03297"></a><span class="lineno"> 3297</span>       <span class="comment">// FIXME: This isn't quite right; if we're performing aggregate</span></div>
+<div class="line"><a name="l03298"></a><span class="lineno"> 3298</span>       <span class="comment">// initialization, each braced subexpression is its own full-expression.</span></div>
+<div class="line"><a name="l03299"></a><span class="lineno"> 3299</span>       FullExpressionRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03300"></a><span class="lineno"> 3300</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ad539e720de20b9f6420f164240c3d8fa">EvaluateDecl</a>(Info, *DclIt) && !Info.keepEvaluatingAfterFailure())</div>
+<div class="line"><a name="l03301"></a><span class="lineno"> 3301</span>         <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03302"></a><span class="lineno"> 3302</span>     }</div>
+<div class="line"><a name="l03303"></a><span class="lineno"> 3303</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03304"></a><span class="lineno"> 3304</span>   }</div>
+<div class="line"><a name="l03305"></a><span class="lineno"> 3305</span> </div>
+<div class="line"><a name="l03306"></a><span class="lineno"> 3306</span>   <span class="keywordflow">case</span> Stmt::ReturnStmtClass: {</div>
+<div class="line"><a name="l03307"></a><span class="lineno"> 3307</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1Expr.html">Expr</a> *RetExpr = cast<ReturnStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>)->getRetValue();</div>
+<div class="line"><a name="l03308"></a><span class="lineno"> 3308</span>     FullExpressionRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03309"></a><span class="lineno"> 3309</span>     <span class="keywordflow">if</span> (RetExpr && !<a class="code" href="ExprConstant_8cpp.html#ae7dcbcdd6d581c905cc4eeb5fa79c86b">Evaluate</a>(Result, Info, RetExpr))</div>
+<div class="line"><a name="l03310"></a><span class="lineno"> 3310</span>       <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03311"></a><span class="lineno"> 3311</span>     <span class="keywordflow">return</span> ESR_Returned;</div>
+<div class="line"><a name="l03312"></a><span class="lineno"> 3312</span>   }</div>
+<div class="line"><a name="l03313"></a><span class="lineno"> 3313</span> </div>
+<div class="line"><a name="l03314"></a><span class="lineno"> 3314</span>   <span class="keywordflow">case</span> Stmt::CompoundStmtClass: {</div>
+<div class="line"><a name="l03315"></a><span class="lineno"> 3315</span>     BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03316"></a><span class="lineno"> 3316</span> </div>
+<div class="line"><a name="l03317"></a><span class="lineno"> 3317</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CompoundStmt.html">CompoundStmt</a> *CS = cast<CompoundStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03318"></a><span class="lineno"> 3318</span>     <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1CompoundStmt.html#a9750d59c3c5fa551951901a40a3887da">CompoundStmt::const_body_iterator</a> BI = CS-><a class="code" href="classclang_1_1CompoundStmt.html#a89f494cf13b72531e81c7b9a87db22a7">body_begin</a>(),</div>
+<div class="line"><a name="l03319"></a><span class="lineno"> 3319</span>            BE = CS-><a class="code" href="classclang_1_1CompoundStmt.html#a5bc934fe5cf3477500b1824a7e0d4db2">body_end</a>(); BI != BE; ++BI) {</div>
+<div class="line"><a name="l03320"></a><span class="lineno"> 3320</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, *BI, Case);</div>
+<div class="line"><a name="l03321"></a><span class="lineno"> 3321</span>       <span class="keywordflow">if</span> (ESR == ESR_Succeeded)</div>
+<div class="line"><a name="l03322"></a><span class="lineno"> 3322</span>         Case = 0;</div>
+<div class="line"><a name="l03323"></a><span class="lineno"> 3323</span>       <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ESR != ESR_CaseNotFound)</div>
+<div class="line"><a name="l03324"></a><span class="lineno"> 3324</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03325"></a><span class="lineno"> 3325</span>     }</div>
+<div class="line"><a name="l03326"></a><span class="lineno"> 3326</span>     <span class="keywordflow">return</span> Case ? ESR_CaseNotFound : ESR_Succeeded;</div>
+<div class="line"><a name="l03327"></a><span class="lineno"> 3327</span>   }</div>
+<div class="line"><a name="l03328"></a><span class="lineno"> 3328</span> </div>
+<div class="line"><a name="l03329"></a><span class="lineno"> 3329</span>   <span class="keywordflow">case</span> Stmt::IfStmtClass: {</div>
+<div class="line"><a name="l03330"></a><span class="lineno"> 3330</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1IfStmt.html">IfStmt</a> *IS = cast<IfStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03331"></a><span class="lineno"> 3331</span> </div>
+<div class="line"><a name="l03332"></a><span class="lineno"> 3332</span>     <span class="comment">// Evaluate the condition, as either a var decl or as an expression.</span></div>
+<div class="line"><a name="l03333"></a><span class="lineno"> 3333</span>     BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03334"></a><span class="lineno"> 3334</span>     <span class="keywordtype">bool</span> Cond;</div>
+<div class="line"><a name="l03335"></a><span class="lineno"> 3335</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#acec1496fe2c90f957d7915d0858a0ddd" title="Evaluate a condition (either a variable declaration or an expression).">EvaluateCond</a>(Info, IS-><a class="code" href="classclang_1_1IfStmt.html#a7da455bed7eac4f380689cf7d5a2122b" title="Retrieve the variable declared in this "if" statement, if any.">getConditionVariable</a>(), IS-><a class="code" href="classclang_1_1IfStmt.html#a2abf6bc9a2b3d4c8f1c90f49e9baa81d">getCond</a>(), Cond))</div>
+<div class="line"><a name="l03336"></a><span class="lineno"> 3336</span>       <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03337"></a><span class="lineno"> 3337</span> </div>
+<div class="line"><a name="l03338"></a><span class="lineno"> 3338</span>     <span class="keywordflow">if</span> (<span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> *SubStmt = Cond ? IS-><a class="code" href="classclang_1_1IfStmt.html#adc5d1594ff597deaa6d431ce45fa8c96">getThen</a>() : IS-><a class="code" href="classclang_1_1IfStmt.html#a799cbc371f3c02319d779040c9b3ceae">getElse</a>()) {</div>
+<div class="line"><a name="l03339"></a><span class="lineno"> 3339</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, SubStmt);</div>
+<div class="line"><a name="l03340"></a><span class="lineno"> 3340</span>       <span class="keywordflow">if</span> (ESR != ESR_Succeeded)</div>
+<div class="line"><a name="l03341"></a><span class="lineno"> 3341</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03342"></a><span class="lineno"> 3342</span>     }</div>
+<div class="line"><a name="l03343"></a><span class="lineno"> 3343</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03344"></a><span class="lineno"> 3344</span>   }</div>
+<div class="line"><a name="l03345"></a><span class="lineno"> 3345</span> </div>
+<div class="line"><a name="l03346"></a><span class="lineno"> 3346</span>   <span class="keywordflow">case</span> Stmt::WhileStmtClass: {</div>
+<div class="line"><a name="l03347"></a><span class="lineno"> 3347</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1WhileStmt.html">WhileStmt</a> *WS = cast<WhileStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03348"></a><span class="lineno"> 3348</span>     <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div>
+<div class="line"><a name="l03349"></a><span class="lineno"> 3349</span>       BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03350"></a><span class="lineno"> 3350</span>       <span class="keywordtype">bool</span> Continue;</div>
+<div class="line"><a name="l03351"></a><span class="lineno"> 3351</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#acec1496fe2c90f957d7915d0858a0ddd" title="Evaluate a condition (either a variable declaration or an expression).">EvaluateCond</a>(Info, WS-><a class="code" href="classclang_1_1WhileStmt.html#a28042c05ca3cfc7b58b2a4aa2a39c93e" title="Retrieve the variable declared in this "while" statement, if any.">getConditionVariable</a>(), WS-><a class="code" href="classclang_1_1WhileStmt.html#abd95f2d5428c8a78d0815130ca9f3f13">getCond</a>(),</div>
+<div class="line"><a name="l03352"></a><span class="lineno"> 3352</span>                         Continue))</div>
+<div class="line"><a name="l03353"></a><span class="lineno"> 3353</span>         <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03354"></a><span class="lineno"> 3354</span>       <span class="keywordflow">if</span> (!Continue)</div>
+<div class="line"><a name="l03355"></a><span class="lineno"> 3355</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03356"></a><span class="lineno"> 3356</span> </div>
+<div class="line"><a name="l03357"></a><span class="lineno"> 3357</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df" title="Evaluate the body of a loop, and translate the result as appropriate.">EvaluateLoopBody</a>(Result, Info, WS-><a class="code" href="classclang_1_1WhileStmt.html#ab7929ea3f57d21b62e0027b757ff038c">getBody</a>());</div>
+<div class="line"><a name="l03358"></a><span class="lineno"> 3358</span>       <span class="keywordflow">if</span> (ESR != ESR_Continue)</div>
+<div class="line"><a name="l03359"></a><span class="lineno"> 3359</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03360"></a><span class="lineno"> 3360</span>     }</div>
+<div class="line"><a name="l03361"></a><span class="lineno"> 3361</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03362"></a><span class="lineno"> 3362</span>   }</div>
+<div class="line"><a name="l03363"></a><span class="lineno"> 3363</span> </div>
+<div class="line"><a name="l03364"></a><span class="lineno"> 3364</span>   <span class="keywordflow">case</span> Stmt::DoStmtClass: {</div>
+<div class="line"><a name="l03365"></a><span class="lineno"> 3365</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1DoStmt.html">DoStmt</a> *DS = cast<DoStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03366"></a><span class="lineno"> 3366</span>     <span class="keywordtype">bool</span> Continue;</div>
+<div class="line"><a name="l03367"></a><span class="lineno"> 3367</span>     <span class="keywordflow">do</span> {</div>
+<div class="line"><a name="l03368"></a><span class="lineno"> 3368</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df" title="Evaluate the body of a loop, and translate the result as appropriate.">EvaluateLoopBody</a>(Result, Info, DS-><a class="code" href="classclang_1_1DoStmt.html#abe217d4623575f61d8bced562d1aaf39">getBody</a>(), Case);</div>
+<div class="line"><a name="l03369"></a><span class="lineno"> 3369</span>       <span class="keywordflow">if</span> (ESR != ESR_Continue)</div>
+<div class="line"><a name="l03370"></a><span class="lineno"> 3370</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03371"></a><span class="lineno"> 3371</span>       Case = 0;</div>
+<div class="line"><a name="l03372"></a><span class="lineno"> 3372</span> </div>
+<div class="line"><a name="l03373"></a><span class="lineno"> 3373</span>       FullExpressionRAII CondScope(Info);</div>
+<div class="line"><a name="l03374"></a><span class="lineno"> 3374</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a8cb5646eff46aaf7f593e1bc795b78a0">EvaluateAsBooleanCondition</a>(DS-><a class="code" href="classclang_1_1DoStmt.html#a0bb1ed03c538eb146c0bdbca4b5df5a3">getCond</a>(), Continue, Info))</div>
+<div class="line"><a name="l03375"></a><span class="lineno"> 3375</span>         <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03376"></a><span class="lineno"> 3376</span>     } <span class="keywordflow">while</span> (Continue);</div>
+<div class="line"><a name="l03377"></a><span class="lineno"> 3377</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03378"></a><span class="lineno"> 3378</span>   }</div>
+<div class="line"><a name="l03379"></a><span class="lineno"> 3379</span> </div>
+<div class="line"><a name="l03380"></a><span class="lineno"> 3380</span>   <span class="keywordflow">case</span> Stmt::ForStmtClass: {</div>
+<div class="line"><a name="l03381"></a><span class="lineno"> 3381</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1ForStmt.html">ForStmt</a> *FS = cast<ForStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03382"></a><span class="lineno"> 3382</span>     BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03383"></a><span class="lineno"> 3383</span>     <span class="keywordflow">if</span> (FS-><a class="code" href="classclang_1_1ForStmt.html#ae4fc309b84b57a02376a02fd36c1d836">getInit</a>()) {</div>
+<div class="line"><a name="l03384"></a><span class="lineno"> 3384</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, FS-><a class="code" href="classclang_1_1ForStmt.html#ae4fc309b84b57a02376a02fd36c1d836">getInit</a>());</div>
+<div class="line"><a name="l03385"></a><span class="lineno"> 3385</span>       <span class="keywordflow">if</span> (ESR != ESR_Succeeded)</div>
+<div class="line"><a name="l03386"></a><span class="lineno"> 3386</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03387"></a><span class="lineno"> 3387</span>     }</div>
+<div class="line"><a name="l03388"></a><span class="lineno"> 3388</span>     <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div>
+<div class="line"><a name="l03389"></a><span class="lineno"> 3389</span>       BlockScopeRAII Scope(Info);</div>
+<div class="line"><a name="l03390"></a><span class="lineno"> 3390</span>       <span class="keywordtype">bool</span> Continue = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03391"></a><span class="lineno"> 3391</span>       <span class="keywordflow">if</span> (FS-><a class="code" href="classclang_1_1ForStmt.html#adfc65a829fed9bf7fdf39c1ad7c141fa">getCond</a>() && !<a class="code" href="ExprConstant_8cpp.html#acec1496fe2c90f957d7915d0858a0ddd" title="Evaluate a condition (either a variable declaration or an expression).">EvaluateCond</a>(Info, FS-><a class="code" href="classclang_1_1ForStmt.html#a43f4d356baa047f895978ddc8d64fee0" title="Retrieve the variable declared in this "for" statement, if any.">getConditionVariable</a>(),</div>
+<div class="line"><a name="l03392"></a><span class="lineno"> 3392</span>                                          FS-><a class="code" href="classclang_1_1ForStmt.html#adfc65a829fed9bf7fdf39c1ad7c141fa">getCond</a>(), Continue))</div>
+<div class="line"><a name="l03393"></a><span class="lineno"> 3393</span>         <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03394"></a><span class="lineno"> 3394</span>       <span class="keywordflow">if</span> (!Continue)</div>
+<div class="line"><a name="l03395"></a><span class="lineno"> 3395</span>         <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03396"></a><span class="lineno"> 3396</span> </div>
+<div class="line"><a name="l03397"></a><span class="lineno"> 3397</span>       <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df" title="Evaluate the body of a loop, and translate the result as appropriate.">EvaluateLoopBody</a>(Result, Info, FS-><a class="code" href="classclang_1_1ForStmt.html#a6f73f050185a05d2492a48d3e0673094">getBody</a>());</div>
+<div class="line"><a name="l03398"></a><span class="lineno"> 3398</span>       <span class="keywordflow">if</span> (ESR != ESR_Continue)</div>
+<div class="line"><a name="l03399"></a><span class="lineno"> 3399</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03400"></a><span class="lineno"> 3400</span> </div>
+<div class="line"><a name="l03401"></a><span class="lineno"> 3401</span>       <span class="keywordflow">if</span> (FS-><a class="code" href="classclang_1_1ForStmt.html#a1862e5a9ace98ddef0075b43820d9528">getInc</a>()) {</div>
+<div class="line"><a name="l03402"></a><span class="lineno"> 3402</span>         FullExpressionRAII IncScope(Info);</div>
+<div class="line"><a name="l03403"></a><span class="lineno"> 3403</span>         <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a59ccfd804cf0140587b18fe8139eceea">EvaluateIgnoredValue</a>(Info, FS-><a class="code" href="classclang_1_1ForStmt.html#a1862e5a9ace98ddef0075b43820d9528">getInc</a>()))</div>
+<div class="line"><a name="l03404"></a><span class="lineno"> 3404</span>           <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03405"></a><span class="lineno"> 3405</span>       }</div>
+<div class="line"><a name="l03406"></a><span class="lineno"> 3406</span>     }</div>
+<div class="line"><a name="l03407"></a><span class="lineno"> 3407</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03408"></a><span class="lineno"> 3408</span>   }</div>
+<div class="line"><a name="l03409"></a><span class="lineno"> 3409</span> </div>
+<div class="line"><a name="l03410"></a><span class="lineno"> 3410</span>   <span class="keywordflow">case</span> Stmt::CXXForRangeStmtClass: {</div>
+<div class="line"><a name="l03411"></a><span class="lineno"> 3411</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXForRangeStmt.html">CXXForRangeStmt</a> *FS = cast<CXXForRangeStmt>(<a class="code" href="AnalysisBasedWarnings_8cpp.html#a33dc45a03958a0bf07b5da2dec4db648">S</a>);</div>
+<div class="line"><a name="l03412"></a><span class="lineno"> 3412</span>     BlockScopeRAII <a class="code" href="classclang_1_1Scope.html">Scope</a>(Info);</div>
+<div class="line"><a name="l03413"></a><span class="lineno"> 3413</span> </div>
+<div class="line"><a name="l03414"></a><span class="lineno"> 3414</span>     <span class="comment">// Initialize the __range variable.</span></div>
+<div class="line"><a name="l03415"></a><span class="lineno"> 3415</span>     <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, FS-><a class="code" href="classclang_1_1CXXForRangeStmt.html#af6bbdd9e342b0ca0e1662804ccb33138">getRangeStmt</a>());</div>
+<div class="line"><a name="l03416"></a><span class="lineno"> 3416</span>     <span class="keywordflow">if</span> (ESR != ESR_Succeeded)</div>
+<div class="line"><a name="l03417"></a><span class="lineno"> 3417</span>       <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03418"></a><span class="lineno"> 3418</span> </div>
+<div class="line"><a name="l03419"></a><span class="lineno"> 3419</span>     <span class="comment">// Create the __begin and __end iterators.</span></div>
+<div class="line"><a name="l03420"></a><span class="lineno"> 3420</span>     ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, FS-><a class="code" href="classclang_1_1CXXForRangeStmt.html#a3fddb480de579405a437366e543e01f8">getBeginEndStmt</a>());</div>
+<div class="line"><a name="l03421"></a><span class="lineno"> 3421</span>     <span class="keywordflow">if</span> (ESR != ESR_Succeeded)</div>
+<div class="line"><a name="l03422"></a><span class="lineno"> 3422</span>       <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03423"></a><span class="lineno"> 3423</span> </div>
+<div class="line"><a name="l03424"></a><span class="lineno"> 3424</span>     <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div>
+<div class="line"><a name="l03425"></a><span class="lineno"> 3425</span>       <span class="comment">// Condition: __begin != __end.</span></div>
+<div class="line"><a name="l03426"></a><span class="lineno"> 3426</span>       {</div>
+<div class="line"><a name="l03427"></a><span class="lineno"> 3427</span>         <span class="keywordtype">bool</span> Continue = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03428"></a><span class="lineno"> 3428</span>         FullExpressionRAII CondExpr(Info);</div>
+<div class="line"><a name="l03429"></a><span class="lineno"> 3429</span>         <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a8cb5646eff46aaf7f593e1bc795b78a0">EvaluateAsBooleanCondition</a>(FS-><a class="code" href="classclang_1_1CXXForRangeStmt.html#a06e5bf0adad48dddee1d99a9cd324cf4">getCond</a>(), Continue, Info))</div>
+<div class="line"><a name="l03430"></a><span class="lineno"> 3430</span>           <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03431"></a><span class="lineno"> 3431</span>         <span class="keywordflow">if</span> (!Continue)</div>
+<div class="line"><a name="l03432"></a><span class="lineno"> 3432</span>           <span class="keywordflow">break</span>;</div>
+<div class="line"><a name="l03433"></a><span class="lineno"> 3433</span>       }</div>
+<div class="line"><a name="l03434"></a><span class="lineno"> 3434</span> </div>
+<div class="line"><a name="l03435"></a><span class="lineno"> 3435</span>       <span class="comment">// User's variable declaration, initialized by *__begin.</span></div>
+<div class="line"><a name="l03436"></a><span class="lineno"> 3436</span>       BlockScopeRAII InnerScope(Info);</div>
+<div class="line"><a name="l03437"></a><span class="lineno"> 3437</span>       ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, FS-><a class="code" href="classclang_1_1CXXForRangeStmt.html#aff034c1cb1dd7dc8950d359259806ea6">getLoopVarStmt</a>());</div>
+<div class="line"><a name="l03438"></a><span class="lineno"> 3438</span>       <span class="keywordflow">if</span> (ESR != ESR_Succeeded)</div>
+<div class="line"><a name="l03439"></a><span class="lineno"> 3439</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03440"></a><span class="lineno"> 3440</span> </div>
+<div class="line"><a name="l03441"></a><span class="lineno"> 3441</span>       <span class="comment">// Loop body.</span></div>
+<div class="line"><a name="l03442"></a><span class="lineno"> 3442</span>       ESR = <a class="code" href="ExprConstant_8cpp.html#a0417752a52e63ed4436dae82628cc7df" title="Evaluate the body of a loop, and translate the result as appropriate.">EvaluateLoopBody</a>(Result, Info, FS-><a class="code" href="classclang_1_1CXXForRangeStmt.html#ada90abb7b743fcd5bc4a16a67ea6b55e">getBody</a>());</div>
+<div class="line"><a name="l03443"></a><span class="lineno"> 3443</span>       <span class="keywordflow">if</span> (ESR != ESR_Continue)</div>
+<div class="line"><a name="l03444"></a><span class="lineno"> 3444</span>         <span class="keywordflow">return</span> ESR;</div>
+<div class="line"><a name="l03445"></a><span class="lineno"> 3445</span> </div>
+<div class="line"><a name="l03446"></a><span class="lineno"> 3446</span>       <span class="comment">// Increment: ++__begin</span></div>
+<div class="line"><a name="l03447"></a><span class="lineno"> 3447</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a59ccfd804cf0140587b18fe8139eceea">EvaluateIgnoredValue</a>(Info, FS-><a class="code" href="classclang_1_1CXXForRangeStmt.html#a61a3df54ce8b0c5cbb72f0bc01f662fc">getInc</a>()))</div>
+<div class="line"><a name="l03448"></a><span class="lineno"> 3448</span>         <span class="keywordflow">return</span> ESR_Failed;</div>
+<div class="line"><a name="l03449"></a><span class="lineno"> 3449</span>     }</div>
+<div class="line"><a name="l03450"></a><span class="lineno"> 3450</span> </div>
+<div class="line"><a name="l03451"></a><span class="lineno"> 3451</span>     <span class="keywordflow">return</span> ESR_Succeeded;</div>
+<div class="line"><a name="l03452"></a><span class="lineno"> 3452</span>   }</div>
+<div class="line"><a name="l03453"></a><span class="lineno"> 3453</span> </div>
+<div class="line"><a name="l03454"></a><span class="lineno"> 3454</span>   <span class="keywordflow">case</span> Stmt::SwitchStmtClass:</div>
+<div class="line"><a name="l03455"></a><span class="lineno"> 3455</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aaaf93289374aff131c39e38a722bc9a3" title="Evaluate a switch statement.">EvaluateSwitch</a>(Result, Info, cast<SwitchStmt>(S));</div>
+<div class="line"><a name="l03456"></a><span class="lineno"> 3456</span> </div>
+<div class="line"><a name="l03457"></a><span class="lineno"> 3457</span>   <span class="keywordflow">case</span> Stmt::ContinueStmtClass:</div>
+<div class="line"><a name="l03458"></a><span class="lineno"> 3458</span>     <span class="keywordflow">return</span> ESR_Continue;</div>
+<div class="line"><a name="l03459"></a><span class="lineno"> 3459</span> </div>
+<div class="line"><a name="l03460"></a><span class="lineno"> 3460</span>   <span class="keywordflow">case</span> Stmt::BreakStmtClass:</div>
+<div class="line"><a name="l03461"></a><span class="lineno"> 3461</span>     <span class="keywordflow">return</span> ESR_Break;</div>
+<div class="line"><a name="l03462"></a><span class="lineno"> 3462</span> </div>
+<div class="line"><a name="l03463"></a><span class="lineno"> 3463</span>   <span class="keywordflow">case</span> Stmt::LabelStmtClass:</div>
+<div class="line"><a name="l03464"></a><span class="lineno"> 3464</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, cast<LabelStmt>(S)->getSubStmt(), Case);</div>
+<div class="line"><a name="l03465"></a><span class="lineno"> 3465</span> </div>
+<div class="line"><a name="l03466"></a><span class="lineno"> 3466</span>   <span class="keywordflow">case</span> Stmt::AttributedStmtClass:</div>
+<div class="line"><a name="l03467"></a><span class="lineno"> 3467</span>     <span class="comment">// As a general principle, C++11 attributes can be ignored without</span></div>
+<div class="line"><a name="l03468"></a><span class="lineno"> 3468</span>     <span class="comment">// any semantic impact.</span></div>
+<div class="line"><a name="l03469"></a><span class="lineno"> 3469</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, cast<AttributedStmt>(S)->getSubStmt(),</div>
+<div class="line"><a name="l03470"></a><span class="lineno"> 3470</span>                         Case);</div>
+<div class="line"><a name="l03471"></a><span class="lineno"> 3471</span> </div>
+<div class="line"><a name="l03472"></a><span class="lineno"> 3472</span>   <span class="keywordflow">case</span> Stmt::CaseStmtClass:</div>
+<div class="line"><a name="l03473"></a><span class="lineno"> 3473</span>   <span class="keywordflow">case</span> Stmt::DefaultStmtClass:</div>
+<div class="line"><a name="l03474"></a><span class="lineno"> 3474</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, cast<SwitchCase>(S)->getSubStmt(), Case);</div>
+<div class="line"><a name="l03475"></a><span class="lineno"> 3475</span>   }</div>
+<div class="line"><a name="l03476"></a><span class="lineno"> 3476</span> }</div>
+<div class="line"><a name="l03477"></a><span class="lineno"> 3477</span> <span class="comment"></span></div>
+<div class="line"><a name="l03478"></a><span class="lineno"> 3478</span> <span class="comment">/// CheckTrivialDefaultConstructor - Check whether a constructor is a trivial</span></div>
+<div class="line"><a name="l03479"></a><span class="lineno"> 3479</span> <span class="comment">/// default constructor. If so, we'll fold it whether or not it's marked as</span></div>
+<div class="line"><a name="l03480"></a><span class="lineno"> 3480</span> <span class="comment">/// constexpr. If it is marked as constexpr, we will never implicitly define it,</span></div>
+<div class="line"><a name="l03481"></a><span class="lineno"> 3481</span> <span class="comment">/// so we need special handling.</span></div>
+<div class="line"><a name="l03482"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a221e84f8555fd043496a067f759b6ff3"> 3482</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a221e84f8555fd043496a067f759b6ff3">CheckTrivialDefaultConstructor</a>(EvalInfo &Info, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> Loc,</div>
+<div class="line"><a name="l03483"></a><span class="lineno"> 3483</span>                                            <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXConstructorDecl.html" title="Represents a C++ constructor within a class.">CXXConstructorDecl</a> *CD,</div>
+<div class="line"><a name="l03484"></a><span class="lineno"> 3484</span>                                            <span class="keywordtype">bool</span> IsValueInitialization) {</div>
+<div class="line"><a name="l03485"></a><span class="lineno"> 3485</span>   <span class="keywordflow">if</span> (!CD-><a class="code" href="classclang_1_1FunctionDecl.html#a38f30631618adf76156cc295cd88040a">isTrivial</a>() || !CD-><a class="code" href="classclang_1_1CXXConstructorDecl.html#a261717abb407256031a905adf83711c7">isDefaultConstructor</a>())</div>
+<div class="line"><a name="l03486"></a><span class="lineno"> 3486</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03487"></a><span class="lineno"> 3487</span> </div>
+<div class="line"><a name="l03488"></a><span class="lineno"> 3488</span>   <span class="comment">// Value-initialization does not call a trivial default constructor, so such a</span></div>
+<div class="line"><a name="l03489"></a><span class="lineno"> 3489</span>   <span class="comment">// call is a core constant expression whether or not the constructor is</span></div>
+<div class="line"><a name="l03490"></a><span class="lineno"> 3490</span>   <span class="comment">// constexpr.</span></div>
+<div class="line"><a name="l03491"></a><span class="lineno"> 3491</span>   <span class="keywordflow">if</span> (!CD-><a class="code" href="classclang_1_1FunctionDecl.html#a3c1f97ddf2c0d5885f36aefa90ffae11" title="Whether this is a (C++11) constexpr function or constexpr constructor.">isConstexpr</a>() && !IsValueInitialization) {</div>
+<div class="line"><a name="l03492"></a><span class="lineno"> 3492</span>     <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11) {</div>
+<div class="line"><a name="l03493"></a><span class="lineno"> 3493</span>       <span class="comment">// FIXME: If DiagDecl is an implicitly-declared special member function,</span></div>
+<div class="line"><a name="l03494"></a><span class="lineno"> 3494</span>       <span class="comment">// we should be much more explicit about why it's not constexpr.</span></div>
+<div class="line"><a name="l03495"></a><span class="lineno"> 3495</span>       Info.CCEDiag(Loc, diag::note_constexpr_invalid_function, 1)</div>
+<div class="line"><a name="l03496"></a><span class="lineno"> 3496</span>         << <span class="comment">/*IsConstexpr*/</span>0 << <span class="comment">/*IsConstructor*/</span>1 << CD;</div>
+<div class="line"><a name="l03497"></a><span class="lineno"> 3497</span>       Info.Note(CD-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l03498"></a><span class="lineno"> 3498</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03499"></a><span class="lineno"> 3499</span>       Info.CCEDiag(Loc, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l03500"></a><span class="lineno"> 3500</span>     }</div>
+<div class="line"><a name="l03501"></a><span class="lineno"> 3501</span>   }</div>
+<div class="line"><a name="l03502"></a><span class="lineno"> 3502</span>   <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03503"></a><span class="lineno"> 3503</span> }</div>
+<div class="line"><a name="l03504"></a><span class="lineno"> 3504</span> <span class="comment"></span></div>
+<div class="line"><a name="l03505"></a><span class="lineno"> 3505</span> <span class="comment">/// CheckConstexprFunction - Check that a function can be called in a constant</span></div>
+<div class="line"><a name="l03506"></a><span class="lineno"> 3506</span> <span class="comment">/// expression.</span></div>
+<div class="line"><a name="l03507"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ab77f455ddee740aab84b19c6dffb6adf"> 3507</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ab77f455ddee740aab84b19c6dffb6adf">CheckConstexprFunction</a>(EvalInfo &Info, <a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> CallLoc,</div>
+<div class="line"><a name="l03508"></a><span class="lineno"> 3508</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *Declaration,</div>
+<div class="line"><a name="l03509"></a><span class="lineno"> 3509</span>                                    <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *Definition) {</div>
+<div class="line"><a name="l03510"></a><span class="lineno"> 3510</span>   <span class="comment">// Potential constant expressions can contain calls to declared, but not yet</span></div>
+<div class="line"><a name="l03511"></a><span class="lineno"> 3511</span>   <span class="comment">// defined, constexpr functions.</span></div>
+<div class="line"><a name="l03512"></a><span class="lineno"> 3512</span>   <span class="keywordflow">if</span> (Info.checkingPotentialConstantExpression() && !Definition &&</div>
+<div class="line"><a name="l03513"></a><span class="lineno"> 3513</span>       Declaration-><a class="code" href="classclang_1_1FunctionDecl.html#a3c1f97ddf2c0d5885f36aefa90ffae11" title="Whether this is a (C++11) constexpr function or constexpr constructor.">isConstexpr</a>())</div>
+<div class="line"><a name="l03514"></a><span class="lineno"> 3514</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03515"></a><span class="lineno"> 3515</span> </div>
+<div class="line"><a name="l03516"></a><span class="lineno"> 3516</span>   <span class="comment">// Bail out with no diagnostic if the function declaration itself is invalid.</span></div>
+<div class="line"><a name="l03517"></a><span class="lineno"> 3517</span>   <span class="comment">// We will have produced a relevant diagnostic while parsing it.</span></div>
+<div class="line"><a name="l03518"></a><span class="lineno"> 3518</span>   <span class="keywordflow">if</span> (Declaration-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>())</div>
+<div class="line"><a name="l03519"></a><span class="lineno"> 3519</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03520"></a><span class="lineno"> 3520</span> </div>
+<div class="line"><a name="l03521"></a><span class="lineno"> 3521</span>   <span class="comment">// Can we evaluate this function call?</span></div>
+<div class="line"><a name="l03522"></a><span class="lineno"> 3522</span>   <span class="keywordflow">if</span> (Definition && Definition-><a class="code" href="classclang_1_1FunctionDecl.html#a3c1f97ddf2c0d5885f36aefa90ffae11" title="Whether this is a (C++11) constexpr function or constexpr constructor.">isConstexpr</a>() && !Definition-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>())</div>
+<div class="line"><a name="l03523"></a><span class="lineno"> 3523</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03524"></a><span class="lineno"> 3524</span> </div>
+<div class="line"><a name="l03525"></a><span class="lineno"> 3525</span>   <span class="keywordflow">if</span> (Info.getLangOpts().CPlusPlus11) {</div>
+<div class="line"><a name="l03526"></a><span class="lineno"> 3526</span>     <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *DiagDecl = Definition ? Definition : Declaration;</div>
+<div class="line"><a name="l03527"></a><span class="lineno"> 3527</span>     <span class="comment">// FIXME: If DiagDecl is an implicitly-declared special member function, we</span></div>
+<div class="line"><a name="l03528"></a><span class="lineno"> 3528</span>     <span class="comment">// should be much more explicit about why it's not constexpr.</span></div>
+<div class="line"><a name="l03529"></a><span class="lineno"> 3529</span>     Info.Diag(CallLoc, diag::note_constexpr_invalid_function, 1)</div>
+<div class="line"><a name="l03530"></a><span class="lineno"> 3530</span>       << DiagDecl-><a class="code" href="classclang_1_1FunctionDecl.html#a3c1f97ddf2c0d5885f36aefa90ffae11" title="Whether this is a (C++11) constexpr function or constexpr constructor.">isConstexpr</a>() << isa<CXXConstructorDecl>(DiagDecl)</div>
+<div class="line"><a name="l03531"></a><span class="lineno"> 3531</span>       << DiagDecl;</div>
+<div class="line"><a name="l03532"></a><span class="lineno"> 3532</span>     Info.Note(DiagDecl-><a class="code" href="classclang_1_1Decl.html#a2348196ac4e0b1d5ebb1859c31b99eac">getLocation</a>(), diag::note_declared_at);</div>
+<div class="line"><a name="l03533"></a><span class="lineno"> 3533</span>   } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03534"></a><span class="lineno"> 3534</span>     Info.Diag(CallLoc, diag::note_invalid_subexpr_in_const_expr);</div>
+<div class="line"><a name="l03535"></a><span class="lineno"> 3535</span>   }</div>
+<div class="line"><a name="l03536"></a><span class="lineno"> 3536</span>   <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03537"></a><span class="lineno"> 3537</span> }</div>
+<div class="line"><a name="l03538"></a><span class="lineno"> 3538</span> </div>
+<div class="line"><a name="l03539"></a><span class="lineno"> 3539</span> <span class="keyword">namespace </span>{</div>
+<div class="line"><a name="l03540"></a><span class="lineno"> 3540</span> <span class="keyword">typedef</span> <a class="code" href="classllvm_1_1SmallVector.html">SmallVector<APValue, 8></a> ArgVector;</div>
+<div class="line"><a name="l03541"></a><span class="lineno"> 3541</span> }</div>
+<div class="line"><a name="l03542"></a><span class="lineno"> 3542</span> <span class="comment"></span></div>
+<div class="line"><a name="l03543"></a><span class="lineno"> 3543</span> <span class="comment">/// EvaluateArgs - Evaluate the arguments to a function call.</span></div>
+<div class="line"><a name="l03544"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#af97ec88a46749ac07cf1e44f099c33be"> 3544</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#af97ec88a46749ac07cf1e44f099c33be" title="EvaluateArgs - Evaluate the arguments to a function call.">EvaluateArgs</a>(<a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const Expr*></a> <a class="code" href="SemaOverload_8cpp.html#ab0970fce5a85028c7eac6fb99797fea5">Args</a>, ArgVector &ArgValues,</div>
+<div class="line"><a name="l03545"></a><span class="lineno"> 3545</span>                          EvalInfo &Info) {</div>
+<div class="line"><a name="l03546"></a><span class="lineno"> 3546</span>   <span class="keywordtype">bool</span> Success = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03547"></a><span class="lineno"> 3547</span>   <span class="keywordflow">for</span> (<a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const Expr*>::iterator</a> I = Args.begin(), E = Args.end();</div>
+<div class="line"><a name="l03548"></a><span class="lineno"> 3548</span>        I != E; ++I) {</div>
+<div class="line"><a name="l03549"></a><span class="lineno"> 3549</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae7dcbcdd6d581c905cc4eeb5fa79c86b">Evaluate</a>(ArgValues[I - Args.begin()], Info, *I)) {</div>
+<div class="line"><a name="l03550"></a><span class="lineno"> 3550</span>       <span class="comment">// If we're checking for a potential constant expression, evaluate all</span></div>
+<div class="line"><a name="l03551"></a><span class="lineno"> 3551</span>       <span class="comment">// initializers even if some of them fail.</span></div>
+<div class="line"><a name="l03552"></a><span class="lineno"> 3552</span>       <span class="keywordflow">if</span> (!Info.keepEvaluatingAfterFailure())</div>
+<div class="line"><a name="l03553"></a><span class="lineno"> 3553</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03554"></a><span class="lineno"> 3554</span>       Success = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03555"></a><span class="lineno"> 3555</span>     }</div>
+<div class="line"><a name="l03556"></a><span class="lineno"> 3556</span>   }</div>
+<div class="line"><a name="l03557"></a><span class="lineno"> 3557</span>   <span class="keywordflow">return</span> Success;</div>
+<div class="line"><a name="l03558"></a><span class="lineno"> 3558</span> }</div>
+<div class="line"><a name="l03559"></a><span class="lineno"> 3559</span> <span class="comment"></span></div>
+<div class="line"><a name="l03560"></a><span class="lineno"> 3560</span> <span class="comment">/// Evaluate a function call.</span></div>
+<div class="line"><a name="l03561"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#a8a07f1e586d411245834c849d44f5c01"> 3561</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#a8a07f1e586d411245834c849d44f5c01" title="Evaluate a function call.">HandleFunctionCall</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> CallLoc,</div>
+<div class="line"><a name="l03562"></a><span class="lineno"> 3562</span>                                <span class="keyword">const</span> <a class="code" href="classclang_1_1FunctionDecl.html">FunctionDecl</a> *Callee, <span class="keyword">const</span> LValue *This,</div>
+<div class="line"><a name="l03563"></a><span class="lineno"> 3563</span>                                <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const Expr*></a> <a class="code" href="SemaOverload_8cpp.html#ab0970fce5a85028c7eac6fb99797fea5">Args</a>, <span class="keyword">const</span> <a class="code" href="classclang_1_1Stmt.html">Stmt</a> *Body,</div>
+<div class="line"><a name="l03564"></a><span class="lineno"> 3564</span>                                EvalInfo &Info, <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result) {</div>
+<div class="line"><a name="l03565"></a><span class="lineno"> 3565</span>   ArgVector ArgValues(Args.size());</div>
+<div class="line"><a name="l03566"></a><span class="lineno"> 3566</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#af97ec88a46749ac07cf1e44f099c33be" title="EvaluateArgs - Evaluate the arguments to a function call.">EvaluateArgs</a>(Args, ArgValues, Info))</div>
+<div class="line"><a name="l03567"></a><span class="lineno"> 3567</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03568"></a><span class="lineno"> 3568</span> </div>
+<div class="line"><a name="l03569"></a><span class="lineno"> 3569</span>   <span class="keywordflow">if</span> (!Info.CheckCallLimit(CallLoc))</div>
+<div class="line"><a name="l03570"></a><span class="lineno"> 3570</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03571"></a><span class="lineno"> 3571</span> </div>
+<div class="line"><a name="l03572"></a><span class="lineno"> 3572</span>   CallStackFrame Frame(Info, CallLoc, Callee, This, ArgValues.data());</div>
+<div class="line"><a name="l03573"></a><span class="lineno"> 3573</span> </div>
+<div class="line"><a name="l03574"></a><span class="lineno"> 3574</span>   <span class="comment">// For a trivial copy or move assignment, perform an APValue copy. This is</span></div>
+<div class="line"><a name="l03575"></a><span class="lineno"> 3575</span>   <span class="comment">// essential for unions, where the operations performed by the assignment</span></div>
+<div class="line"><a name="l03576"></a><span class="lineno"> 3576</span>   <span class="comment">// operator cannot be represented as statements.</span></div>
+<div class="line"><a name="l03577"></a><span class="lineno"> 3577</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXMethodDecl.html" title="Represents a static or instance method of a struct/union/class.">CXXMethodDecl</a> *MD = dyn_cast<<a class="code" href="classclang_1_1CXXMethodDecl.html" title="Represents a static or instance method of a struct/union/class.">CXXMethodDecl</a>>(Callee);</div>
+<div class="line"><a name="l03578"></a><span class="lineno"> 3578</span>   <span class="keywordflow">if</span> (MD && MD->isDefaulted() && MD->isTrivial()) {</div>
+<div class="line"><a name="l03579"></a><span class="lineno"> 3579</span>     assert(This &&</div>
+<div class="line"><a name="l03580"></a><span class="lineno"> 3580</span>            (MD->isCopyAssignmentOperator() || MD->isMoveAssignmentOperator()));</div>
+<div class="line"><a name="l03581"></a><span class="lineno"> 3581</span>     LValue RHS;</div>
+<div class="line"><a name="l03582"></a><span class="lineno"> 3582</span>     RHS.setFrom(Info.Ctx, ArgValues[0]);</div>
+<div class="line"><a name="l03583"></a><span class="lineno"> 3583</span>     <a class="code" href="classclang_1_1APValue.html">APValue</a> RHSValue;</div>
+<div class="line"><a name="l03584"></a><span class="lineno"> 3584</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#ae5b5a573f28f4d0cde0b1e3f8bdf7293" title="Perform an lvalue-to-rvalue conversion on the given glvalue. This can also be used for 'lvalue-to-lva...">handleLValueToRValueConversion</a>(Info, Args[0], Args[0]->getType(),</div>
+<div class="line"><a name="l03585"></a><span class="lineno"> 3585</span>                                         RHS, RHSValue))</div>
+<div class="line"><a name="l03586"></a><span class="lineno"> 3586</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03587"></a><span class="lineno"> 3587</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#a58071c622b415ee44aed8da0cb081e8e" title="Perform an assignment of Val to LVal. Takes ownership of Val.">handleAssignment</a>(Info, Args[0], *This, MD->getThisType(Info.Ctx),</div>
+<div class="line"><a name="l03588"></a><span class="lineno"> 3588</span>                           RHSValue))</div>
+<div class="line"><a name="l03589"></a><span class="lineno"> 3589</span>       <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03590"></a><span class="lineno"> 3590</span>     This->moveInto(Result);</div>
+<div class="line"><a name="l03591"></a><span class="lineno"> 3591</span>     <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03592"></a><span class="lineno"> 3592</span>   }</div>
+<div class="line"><a name="l03593"></a><span class="lineno"> 3593</span> </div>
+<div class="line"><a name="l03594"></a><span class="lineno"> 3594</span>   <a class="code" href="ExprConstant_8cpp.html#a481f163b561f0fd12d2d2f44e02d9611">EvalStmtResult</a> ESR = <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, Body);</div>
+<div class="line"><a name="l03595"></a><span class="lineno"> 3595</span>   <span class="keywordflow">if</span> (ESR == ESR_Succeeded) {</div>
+<div class="line"><a name="l03596"></a><span class="lineno"> 3596</span>     <span class="keywordflow">if</span> (Callee-><a class="code" href="classclang_1_1FunctionDecl.html#a2a4fd00240b9b7552c4d2fbc90c71528">getResultType</a>()-><a class="code" href="classclang_1_1Type.html#a0ee6d74a089fe24d755d9cfd8bceef3f">isVoidType</a>())</div>
+<div class="line"><a name="l03597"></a><span class="lineno"> 3597</span>       <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03598"></a><span class="lineno"> 3598</span>     Info.Diag(Callee-><a class="code" href="classclang_1_1Decl.html#a6eb7b247deafb504e09a9d225bbea0c4">getLocEnd</a>(), diag::note_constexpr_no_return);</div>
+<div class="line"><a name="l03599"></a><span class="lineno"> 3599</span>   }</div>
+<div class="line"><a name="l03600"></a><span class="lineno"> 3600</span>   <span class="keywordflow">return</span> ESR == ESR_Returned;</div>
+<div class="line"><a name="l03601"></a><span class="lineno"> 3601</span> }</div>
+<div class="line"><a name="l03602"></a><span class="lineno"> 3602</span> <span class="comment"></span></div>
+<div class="line"><a name="l03603"></a><span class="lineno"> 3603</span> <span class="comment">/// Evaluate a constructor call.</span></div>
+<div class="line"><a name="l03604"></a><span class="lineno"><a class="code" href="ExprConstant_8cpp.html#ae32c1037138158af57a78b6736159293"> 3604</a></span> <span class="comment"></span><span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="ExprConstant_8cpp.html#ae32c1037138158af57a78b6736159293" title="Evaluate a constructor call.">HandleConstructorCall</a>(<a class="code" href="classclang_1_1SourceLocation.html" title="Encodes a location in the source. The SourceManager can decode this to get at the full include stack...">SourceLocation</a> CallLoc, <span class="keyword">const</span> LValue &This,</div>
+<div class="line"><a name="l03605"></a><span class="lineno"> 3605</span>                                   <a class="code" href="classllvm_1_1ArrayRef.html">ArrayRef<const Expr*></a> <a class="code" href="SemaOverload_8cpp.html#ab0970fce5a85028c7eac6fb99797fea5">Args</a>,</div>
+<div class="line"><a name="l03606"></a><span class="lineno"> 3606</span>                                   <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXConstructorDecl.html" title="Represents a C++ constructor within a class.">CXXConstructorDecl</a> *Definition,</div>
+<div class="line"><a name="l03607"></a><span class="lineno"> 3607</span>                                   EvalInfo &Info, <a class="code" href="classclang_1_1APValue.html">APValue</a> &Result) {</div>
+<div class="line"><a name="l03608"></a><span class="lineno"> 3608</span>   ArgVector ArgValues(Args.size());</div>
+<div class="line"><a name="l03609"></a><span class="lineno"> 3609</span>   <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#af97ec88a46749ac07cf1e44f099c33be" title="EvaluateArgs - Evaluate the arguments to a function call.">EvaluateArgs</a>(Args, ArgValues, Info))</div>
+<div class="line"><a name="l03610"></a><span class="lineno"> 3610</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03611"></a><span class="lineno"> 3611</span> </div>
+<div class="line"><a name="l03612"></a><span class="lineno"> 3612</span>   <span class="keywordflow">if</span> (!Info.CheckCallLimit(CallLoc))</div>
+<div class="line"><a name="l03613"></a><span class="lineno"> 3613</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03614"></a><span class="lineno"> 3614</span> </div>
+<div class="line"><a name="l03615"></a><span class="lineno"> 3615</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *RD = Definition-><a class="code" href="classclang_1_1CXXMethodDecl.html#a89937377c3cbaa960c0d35a2b0100071">getParent</a>();</div>
+<div class="line"><a name="l03616"></a><span class="lineno"> 3616</span>   <span class="keywordflow">if</span> (RD-><a class="code" href="classclang_1_1CXXRecordDecl.html#ae9cacadb059ecb46224d537be149d565" title="Retrieves the number of virtual base classes of this class.">getNumVBases</a>()) {</div>
+<div class="line"><a name="l03617"></a><span class="lineno"> 3617</span>     Info.Diag(CallLoc, diag::note_constexpr_virtual_base) << RD;</div>
+<div class="line"><a name="l03618"></a><span class="lineno"> 3618</span>     <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03619"></a><span class="lineno"> 3619</span>   }</div>
+<div class="line"><a name="l03620"></a><span class="lineno"> 3620</span> </div>
+<div class="line"><a name="l03621"></a><span class="lineno"> 3621</span>   CallStackFrame Frame(Info, CallLoc, Definition, &This, ArgValues.data());</div>
+<div class="line"><a name="l03622"></a><span class="lineno"> 3622</span> </div>
+<div class="line"><a name="l03623"></a><span class="lineno"> 3623</span>   <span class="comment">// If it's a delegating constructor, just delegate.</span></div>
+<div class="line"><a name="l03624"></a><span class="lineno"> 3624</span>   <span class="keywordflow">if</span> (Definition-><a class="code" href="classclang_1_1CXXConstructorDecl.html#aa6555ea88946685e5004f2204d2caeba" title="Determine whether this constructor is a delegating constructor.">isDelegatingConstructor</a>()) {</div>
+<div class="line"><a name="l03625"></a><span class="lineno"> 3625</span>     <a class="code" href="classclang_1_1CXXConstructorDecl.html#a6ad3e9edd9b8789dda1f8a62cb624569" title="Iterates through the member/base initializer list.">CXXConstructorDecl::init_const_iterator</a> I = Definition-><a class="code" href="classclang_1_1CXXConstructorDecl.html#a342b837a011730a22756813fdfd78c34" title="Retrieve an iterator to the first initializer.">init_begin</a>();</div>
+<div class="line"><a name="l03626"></a><span class="lineno"> 3626</span>     {</div>
+<div class="line"><a name="l03627"></a><span class="lineno"> 3627</span>       FullExpressionRAII InitScope(Info);</div>
+<div class="line"><a name="l03628"></a><span class="lineno"> 3628</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#abce909fdfbd15b0aef03182b118a9445">EvaluateInPlace</a>(Result, Info, This, (*I)->getInit()))</div>
+<div class="line"><a name="l03629"></a><span class="lineno"> 3629</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03630"></a><span class="lineno"> 3630</span>     }</div>
+<div class="line"><a name="l03631"></a><span class="lineno"> 3631</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, Definition-><a class="code" href="classclang_1_1FunctionDecl.html#acc6487ca872768c9027e5f9684976b20">getBody</a>()) != ESR_Failed;</div>
+<div class="line"><a name="l03632"></a><span class="lineno"> 3632</span>   }</div>
+<div class="line"><a name="l03633"></a><span class="lineno"> 3633</span> </div>
+<div class="line"><a name="l03634"></a><span class="lineno"> 3634</span>   <span class="comment">// For a trivial copy or move constructor, perform an APValue copy. This is</span></div>
+<div class="line"><a name="l03635"></a><span class="lineno"> 3635</span>   <span class="comment">// essential for unions, where the operations performed by the constructor</span></div>
+<div class="line"><a name="l03636"></a><span class="lineno"> 3636</span>   <span class="comment">// cannot be represented by ctor-initializers.</span></div>
+<div class="line"><a name="l03637"></a><span class="lineno"> 3637</span>   <span class="keywordflow">if</span> (Definition-><a class="code" href="classclang_1_1FunctionDecl.html#ade9df00e7c8e6d18bd681d10da7d9e13">isDefaulted</a>() &&</div>
+<div class="line"><a name="l03638"></a><span class="lineno"> 3638</span>       ((Definition-><a class="code" href="classclang_1_1CXXConstructorDecl.html#ae294ffff326307a7ca6eb64e91597a8e" title="Whether this constructor is a copy constructor (C++ [class.copy]p2, which can be used to copy the cla...">isCopyConstructor</a>() && Definition-><a class="code" href="classclang_1_1FunctionDecl.html#a38f30631618adf76156cc295cd88040a">isTrivial</a>()) ||</div>
+<div class="line"><a name="l03639"></a><span class="lineno"> 3639</span>        (Definition-><a class="code" href="classclang_1_1CXXConstructorDecl.html#a5db5eb870a22c74d5874525b268a0734" title="Determine whether this constructor is a move constructor (C++0x [class.copy]p3), which can be used to...">isMoveConstructor</a>() && Definition-><a class="code" href="classclang_1_1FunctionDecl.html#a38f30631618adf76156cc295cd88040a">isTrivial</a>()))) {</div>
+<div class="line"><a name="l03640"></a><span class="lineno"> 3640</span>     LValue RHS;</div>
+<div class="line"><a name="l03641"></a><span class="lineno"> 3641</span>     RHS.setFrom(Info.Ctx, ArgValues[0]);</div>
+<div class="line"><a name="l03642"></a><span class="lineno"> 3642</span>     <span class="keywordflow">return</span> <a class="code" href="ExprConstant_8cpp.html#ae5b5a573f28f4d0cde0b1e3f8bdf7293" title="Perform an lvalue-to-rvalue conversion on the given glvalue. This can also be used for 'lvalue-to-lva...">handleLValueToRValueConversion</a>(Info, Args[0], Args[0]->getType(),</div>
+<div class="line"><a name="l03643"></a><span class="lineno"> 3643</span>                                           RHS, Result);</div>
+<div class="line"><a name="l03644"></a><span class="lineno"> 3644</span>   }</div>
+<div class="line"><a name="l03645"></a><span class="lineno"> 3645</span> </div>
+<div class="line"><a name="l03646"></a><span class="lineno"> 3646</span>   <span class="comment">// Reserve space for the struct members.</span></div>
+<div class="line"><a name="l03647"></a><span class="lineno"> 3647</span>   <span class="keywordflow">if</span> (!RD-><a class="code" href="classclang_1_1TagDecl.html#a76233fd9169fc9bfa27603ad5477f02a">isUnion</a>() && Result.<a class="code" href="classclang_1_1APValue.html#a4717d55a23b4978d34a6f7c15b201336">isUninit</a>())</div>
+<div class="line"><a name="l03648"></a><span class="lineno"> 3648</span>     Result = <a class="code" href="classclang_1_1APValue.html">APValue</a>(<a class="code" href="structclang_1_1APValue_1_1UninitStruct.html">APValue::UninitStruct</a>(), RD-><a class="code" href="classclang_1_1CXXRecordDecl.html#aa1473d233dd839572b3b93b53801be1f" title="Retrieves the number of base classes of this class.">getNumBases</a>(),</div>
+<div class="line"><a name="l03649"></a><span class="lineno"> 3649</span>                      std::distance(RD-><a class="code" href="classclang_1_1RecordDecl.html#a723c70951c30c075e7a516d1933683e4">field_begin</a>(), RD-><a class="code" href="classclang_1_1RecordDecl.html#a118f17574e4199f2d26cd20902dc88ca">field_end</a>()));</div>
+<div class="line"><a name="l03650"></a><span class="lineno"> 3650</span> </div>
+<div class="line"><a name="l03651"></a><span class="lineno"> 3651</span>   <span class="keywordflow">if</span> (RD-><a class="code" href="classclang_1_1Decl.html#a17ec912fd67469eea51741d45eb0c800">isInvalidDecl</a>()) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03652"></a><span class="lineno"> 3652</span>   <span class="keyword">const</span> <a class="code" href="classclang_1_1ASTRecordLayout.html">ASTRecordLayout</a> &Layout = Info.Ctx.getASTRecordLayout(RD);</div>
+<div class="line"><a name="l03653"></a><span class="lineno"> 3653</span> </div>
+<div class="line"><a name="l03654"></a><span class="lineno"> 3654</span>   <span class="comment">// A scope for temporaries lifetime-extended by reference members.</span></div>
+<div class="line"><a name="l03655"></a><span class="lineno"> 3655</span>   BlockScopeRAII LifetimeExtendedScope(Info);</div>
+<div class="line"><a name="l03656"></a><span class="lineno"> 3656</span> </div>
+<div class="line"><a name="l03657"></a><span class="lineno"> 3657</span>   <span class="keywordtype">bool</span> Success = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l03658"></a><span class="lineno"> 3658</span>   <span class="keywordtype">unsigned</span> BasesSeen = 0;</div>
+<div class="line"><a name="l03659"></a><span class="lineno"> 3659</span> <span class="preprocessor">#ifndef NDEBUG</span></div>
+<div class="line"><a name="l03660"></a><span class="lineno"> 3660</span> <span class="preprocessor"></span>  <a class="code" href="classclang_1_1CXXBaseSpecifier.html" title="Represents a base class of a C++ class.">CXXRecordDecl::base_class_const_iterator</a> BaseIt = RD-><a class="code" href="classclang_1_1CXXRecordDecl.html#a830448d054e3dca2db6851bd4605492c">bases_begin</a>();</div>
+<div class="line"><a name="l03661"></a><span class="lineno"> 3661</span> <span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l03662"></a><span class="lineno"> 3662</span> <span class="preprocessor"></span>  <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1CXXConstructorDecl.html#a6ad3e9edd9b8789dda1f8a62cb624569" title="Iterates through the member/base initializer list.">CXXConstructorDecl::init_const_iterator</a> I = Definition-><a class="code" href="classclang_1_1CXXConstructorDecl.html#a342b837a011730a22756813fdfd78c34" title="Retrieve an iterator to the first initializer.">init_begin</a>(),</div>
+<div class="line"><a name="l03663"></a><span class="lineno"> 3663</span>        E = Definition-><a class="code" href="classclang_1_1CXXConstructorDecl.html#a0c10433e20b917c4077a097fde45f44e" title="Retrieve an iterator past the last initializer.">init_end</a>(); I != E; ++I) {</div>
+<div class="line"><a name="l03664"></a><span class="lineno"> 3664</span>     LValue Subobject = This;</div>
+<div class="line"><a name="l03665"></a><span class="lineno"> 3665</span>     <a class="code" href="classclang_1_1APValue.html">APValue</a> *Value = &Result;</div>
+<div class="line"><a name="l03666"></a><span class="lineno"> 3666</span> </div>
+<div class="line"><a name="l03667"></a><span class="lineno"> 3667</span>     <span class="comment">// Determine the subobject to initialize.</span></div>
+<div class="line"><a name="l03668"></a><span class="lineno"> 3668</span>     <a class="code" href="classclang_1_1FieldDecl.html">FieldDecl</a> *FD = 0;</div>
+<div class="line"><a name="l03669"></a><span class="lineno"> 3669</span>     <span class="keywordflow">if</span> ((*I)->isBaseInitializer()) {</div>
+<div class="line"><a name="l03670"></a><span class="lineno"> 3670</span>       <a class="code" href="classclang_1_1QualType.html">QualType</a> BaseType((*I)->getBaseClass(), 0);</div>
+<div class="line"><a name="l03671"></a><span class="lineno"> 3671</span> <span class="preprocessor">#ifndef NDEBUG</span></div>
+<div class="line"><a name="l03672"></a><span class="lineno"> 3672</span> <span class="preprocessor"></span>      <span class="comment">// Non-virtual base classes are initialized in the order in the class</span></div>
+<div class="line"><a name="l03673"></a><span class="lineno"> 3673</span>       <span class="comment">// definition. We have already checked for virtual base classes.</span></div>
+<div class="line"><a name="l03674"></a><span class="lineno"> 3674</span>       assert(!BaseIt-><a class="code" href="classclang_1_1CXXBaseSpecifier.html#a052cc9c7e1fb5a7095469c3be012c3a4" title="Determines whether the base class is a virtual base class (or not).">isVirtual</a>() && <span class="stringliteral">"virtual base for literal type"</span>);</div>
+<div class="line"><a name="l03675"></a><span class="lineno"> 3675</span>       assert(Info.Ctx.hasSameType(BaseIt-><a class="code" href="classclang_1_1CXXBaseSpecifier.html#a4e9241e65b4b20b372902d0873a9d838" title="Retrieves the type of the base class.">getType</a>(), BaseType) &&</div>
+<div class="line"><a name="l03676"></a><span class="lineno"> 3676</span>              <span class="stringliteral">"base class initializers not in expected order"</span>);</div>
+<div class="line"><a name="l03677"></a><span class="lineno"> 3677</span>       ++BaseIt;</div>
+<div class="line"><a name="l03678"></a><span class="lineno"> 3678</span> <span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l03679"></a><span class="lineno"> 3679</span> <span class="preprocessor"></span>      <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#adb3af383e7703d8c00b31b22640001f8">HandleLValueDirectBase</a>(Info, (*I)->getInit(), Subobject, RD,</div>
+<div class="line"><a name="l03680"></a><span class="lineno"> 3680</span>                                   BaseType->getAsCXXRecordDecl(), &Layout))</div>
+<div class="line"><a name="l03681"></a><span class="lineno"> 3681</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03682"></a><span class="lineno"> 3682</span>       Value = &Result.<a class="code" href="classclang_1_1APValue.html#a67412e5e61937c49c415e7460160cb81">getStructBase</a>(BasesSeen++);</div>
+<div class="line"><a name="l03683"></a><span class="lineno"> 3683</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((FD = (*I)->getMember())) {</div>
+<div class="line"><a name="l03684"></a><span class="lineno"> 3684</span>       <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#acca3041de498c3210ff1597c2dcb6217">HandleLValueMember</a>(Info, (*I)->getInit(), Subobject, FD, &Layout))</div>
+<div class="line"><a name="l03685"></a><span class="lineno"> 3685</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03686"></a><span class="lineno"> 3686</span>       <span class="keywordflow">if</span> (RD-><a class="code" href="classclang_1_1TagDecl.html#a76233fd9169fc9bfa27603ad5477f02a">isUnion</a>()) {</div>
+<div class="line"><a name="l03687"></a><span class="lineno"> 3687</span>         Result = <a class="code" href="classclang_1_1APValue.html">APValue</a>(FD);</div>
+<div class="line"><a name="l03688"></a><span class="lineno"> 3688</span>         Value = &Result.<a class="code" href="classclang_1_1APValue.html#a14ddc0488234c33e98f71fc269473e6e">getUnionValue</a>();</div>
+<div class="line"><a name="l03689"></a><span class="lineno"> 3689</span>       } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03690"></a><span class="lineno"> 3690</span>         Value = &Result.<a class="code" href="classclang_1_1APValue.html#aa09684bba5319f42788e740c0fb08163">getStructField</a>(FD->getFieldIndex());</div>
+<div class="line"><a name="l03691"></a><span class="lineno"> 3691</span>       }</div>
+<div class="line"><a name="l03692"></a><span class="lineno"> 3692</span>     } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classclang_1_1IndirectFieldDecl.html">IndirectFieldDecl</a> *IFD = (*I)->getIndirectMember()) {</div>
+<div class="line"><a name="l03693"></a><span class="lineno"> 3693</span>       <span class="comment">// Walk the indirect field decl's chain to find the object to initialize,</span></div>
+<div class="line"><a name="l03694"></a><span class="lineno"> 3694</span>       <span class="comment">// and make sure we've initialized every step along it.</span></div>
+<div class="line"><a name="l03695"></a><span class="lineno"> 3695</span>       <span class="keywordflow">for</span> (<a class="code" href="classclang_1_1IndirectFieldDecl.html#a6a0fd4de9f1a53fb21791d50c9ed2abc">IndirectFieldDecl::chain_iterator</a> C = IFD->chain_begin(),</div>
+<div class="line"><a name="l03696"></a><span class="lineno"> 3696</span>                                              CE = IFD->chain_end();</div>
+<div class="line"><a name="l03697"></a><span class="lineno"> 3697</span>            C != CE; ++C) {</div>
+<div class="line"><a name="l03698"></a><span class="lineno"> 3698</span>         FD = cast<FieldDecl>(*C);</div>
+<div class="line"><a name="l03699"></a><span class="lineno"> 3699</span>         <a class="code" href="classclang_1_1CXXRecordDecl.html" title="Represents a C++ struct/union/class.">CXXRecordDecl</a> *CD = cast<CXXRecordDecl>(FD-><a class="code" href="classclang_1_1FieldDecl.html#a3a28e1eb11c273ba8d964a990ac116d6">getParent</a>());</div>
+<div class="line"><a name="l03700"></a><span class="lineno"> 3700</span>         <span class="comment">// Switch the union field if it differs. This happens if we had</span></div>
+<div class="line"><a name="l03701"></a><span class="lineno"> 3701</span>         <span class="comment">// preceding zero-initialization, and we're now initializing a union</span></div>
+<div class="line"><a name="l03702"></a><span class="lineno"> 3702</span>         <span class="comment">// subobject other than the first.</span></div>
+<div class="line"><a name="l03703"></a><span class="lineno"> 3703</span>         <span class="comment">// FIXME: In this case, the values of the other subobjects are</span></div>
+<div class="line"><a name="l03704"></a><span class="lineno"> 3704</span>         <span class="comment">// specified, since zero-initialization sets all padding bits to zero.</span></div>
+<div class="line"><a name="l03705"></a><span class="lineno"> 3705</span>         <span class="keywordflow">if</span> (Value-><a class="code" href="classclang_1_1APValue.html#a4717d55a23b4978d34a6f7c15b201336">isUninit</a>() ||</div>
+<div class="line"><a name="l03706"></a><span class="lineno"> 3706</span>             (Value-><a class="code" href="classclang_1_1APValue.html#ae4f878149d8f0121d84871ca2b06389d">isUnion</a>() && Value-><a class="code" href="classclang_1_1APValue.html#aa8840f6a3a28e1939f9cf3ece9b9b406">getUnionField</a>() != FD)) {</div>
+<div class="line"><a name="l03707"></a><span class="lineno"> 3707</span>           <span class="keywordflow">if</span> (CD-><a class="code" href="classclang_1_1TagDecl.html#a76233fd9169fc9bfa27603ad5477f02a">isUnion</a>())</div>
+<div class="line"><a name="l03708"></a><span class="lineno"> 3708</span>             *Value = <a class="code" href="classclang_1_1APValue.html">APValue</a>(FD);</div>
+<div class="line"><a name="l03709"></a><span class="lineno"> 3709</span>           <span class="keywordflow">else</span></div>
+<div class="line"><a name="l03710"></a><span class="lineno"> 3710</span>             *Value = <a class="code" href="classclang_1_1APValue.html">APValue</a>(<a class="code" href="structclang_1_1APValue_1_1UninitStruct.html">APValue::UninitStruct</a>(), CD-><a class="code" href="classclang_1_1CXXRecordDecl.html#aa1473d233dd839572b3b93b53801be1f" title="Retrieves the number of base classes of this class.">getNumBases</a>(),</div>
+<div class="line"><a name="l03711"></a><span class="lineno"> 3711</span>                              std::distance(CD-><a class="code" href="classclang_1_1RecordDecl.html#a723c70951c30c075e7a516d1933683e4">field_begin</a>(), CD-><a class="code" href="classclang_1_1RecordDecl.html#a118f17574e4199f2d26cd20902dc88ca">field_end</a>()));</div>
+<div class="line"><a name="l03712"></a><span class="lineno"> 3712</span>         }</div>
+<div class="line"><a name="l03713"></a><span class="lineno"> 3713</span>         <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#acca3041de498c3210ff1597c2dcb6217">HandleLValueMember</a>(Info, (*I)->getInit(), Subobject, FD))</div>
+<div class="line"><a name="l03714"></a><span class="lineno"> 3714</span>           <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03715"></a><span class="lineno"> 3715</span>         <span class="keywordflow">if</span> (CD-><a class="code" href="classclang_1_1TagDecl.html#a76233fd9169fc9bfa27603ad5477f02a">isUnion</a>())</div>
+<div class="line"><a name="l03716"></a><span class="lineno"> 3716</span>           Value = &Value-><a class="code" href="classclang_1_1APValue.html#a14ddc0488234c33e98f71fc269473e6e">getUnionValue</a>();</div>
+<div class="line"><a name="l03717"></a><span class="lineno"> 3717</span>         <span class="keywordflow">else</span></div>
+<div class="line"><a name="l03718"></a><span class="lineno"> 3718</span>           Value = &Value-><a class="code" href="classclang_1_1APValue.html#aa09684bba5319f42788e740c0fb08163">getStructField</a>(FD-><a class="code" href="classclang_1_1FieldDecl.html#a791f9f1096135e185996c5ba65491863">getFieldIndex</a>());</div>
+<div class="line"><a name="l03719"></a><span class="lineno"> 3719</span>       }</div>
+<div class="line"><a name="l03720"></a><span class="lineno"> 3720</span>     } <span class="keywordflow">else</span> {</div>
+<div class="line"><a name="l03721"></a><span class="lineno"> 3721</span>       llvm_unreachable(<span class="stringliteral">"unknown base initializer kind"</span>);</div>
+<div class="line"><a name="l03722"></a><span class="lineno"> 3722</span>     }</div>
+<div class="line"><a name="l03723"></a><span class="lineno"> 3723</span> </div>
+<div class="line"><a name="l03724"></a><span class="lineno"> 3724</span>     FullExpressionRAII InitScope(Info);</div>
+<div class="line"><a name="l03725"></a><span class="lineno"> 3725</span>     <span class="keywordflow">if</span> (!<a class="code" href="ExprConstant_8cpp.html#abce909fdfbd15b0aef03182b118a9445">EvaluateInPlace</a>(*Value, Info, Subobject, (*I)->getInit()) ||</div>
+<div class="line"><a name="l03726"></a><span class="lineno"> 3726</span>         (FD && FD-><a class="code" href="classclang_1_1FieldDecl.html#af8c123e193d426f26496c15e2f168a49" title="isBitfield - Determines whether this field is a bitfield.">isBitField</a>() && !<a class="code" href="ExprConstant_8cpp.html#a4bdc4aa6459c514bf8ae3ac16b99418b">truncateBitfieldValue</a>(Info, (*I)->getInit(),</div>
+<div class="line"><a name="l03727"></a><span class="lineno"> 3727</span>                                                           *<a class="code" href="UninitializedValues_8cpp.html#a896c037a32087c5c20d97e64a1786880">Value</a>, FD))) {</div>
+<div class="line"><a name="l03728"></a><span class="lineno"> 3728</span>       <span class="comment">// If we're checking for a potential constant expression, evaluate all</span></div>
+<div class="line"><a name="l03729"></a><span class="lineno"> 3729</span>       <span class="comment">// initializers even if some of them fail.</span></div>
+<div class="line"><a name="l03730"></a><span class="lineno"> 3730</span>       <span class="keywordflow">if</span> (!Info.keepEvaluatingAfterFailure())</div>
+<div class="line"><a name="l03731"></a><span class="lineno"> 3731</span>         <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03732"></a><span class="lineno"> 3732</span>       Success = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l03733"></a><span class="lineno"> 3733</span>     }</div>
+<div class="line"><a name="l03734"></a><span class="lineno"> 3734</span>   }</div>
+<div class="line"><a name="l03735"></a><span class="lineno"> 3735</span> </div>
+<div class="line"><a name="l03736"></a><span class="lineno"> 3736</span>   <span class="keywordflow">return</span> Success &&</div>
+<div class="line"><a name="l03737"></a><span class="lineno"> 3737</span>          <a class="code" href="ExprConstant_8cpp.html#aa22c7b1e93f1488b6322e8130383e2af">EvaluateStmt</a>(Result, Info, Definition-><a class="code" href="classclang_1_1FunctionDecl.html#acc6487ca872768c9