<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jdevlieghere@apple.com" title="Jonas Devlieghere <jdevlieghere@apple.com>"> <span class="fn">Jonas Devlieghere</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - 'char' type treated incorrectly in expression evaluation when non default type is used"
href="https://bugs.llvm.org/show_bug.cgi?id=23069">bug 23069</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>jdevlieghere@apple.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - 'char' type treated incorrectly in expression evaluation when non default type is used"
href="https://bugs.llvm.org/show_bug.cgi?id=23069#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - 'char' type treated incorrectly in expression evaluation when non default type is used"
href="https://bugs.llvm.org/show_bug.cgi?id=23069">bug 23069</a>
from <span class="vcard"><a class="email" href="mailto:jdevlieghere@apple.com" title="Jonas Devlieghere <jdevlieghere@apple.com>"> <span class="fn">Jonas Devlieghere</span></a>
</span></b>
<pre>I think this might have been a debuginfo bug. Regardless, work with ToT clang +
lldb.
(lldb) target create "/tmp/a.out"
Current executable set to '/tmp/a.out' (x86_64).
(lldb) b main.cpp:9
Breakpoint 1: where = a.out`main + 25 at main.cpp:9:3, address =
0x0000000100000fa9
(lldb) r
Process 33426 launched: '/tmp/a.out' (x86_64)
Process 33426 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000100000fa9 a.out`main at main.cpp:9:3
6 char c = 0;
7 signed char sc = 0;
8 unsigned char uc = 0;
-> 9 return 0; // Break here
10 }
(lldb) expression foo(c)
(int) $0 = 1
(lldb) expression foo(sc)
(int) $1 = 2
(lldb) expression foo(uc)
(int) $2 = 3</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>