summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-20 00:25:28 +0000
committerChris Lattner <sabre@nondot.org>2009-02-20 00:25:28 +0000
commit464ceb4ec8524517caa109397a59adcf4262947c (patch)
treefdc87bd647a55fb4bbdfa81485ea3d9d12de4cef /clang/lib/CodeGen/CodeGenModule.cpp
parentf5a5c4fa11c4ab1ea24293442a3d588794bff2c4 (diff)
downloadbcm5719-llvm-464ceb4ec8524517caa109397a59adcf4262947c.tar.gz
bcm5719-llvm-464ceb4ec8524517caa109397a59adcf4262947c.zip
map source ranges through macro expansions. Before:
t.m:5:2: error: invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float')) MAX(P, F); ^~~~~~~~~ t.m:1:78: note: instantiated from: #define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; }) ^ (no ranges on the second diagnostics) After: t.m:5:2: error: invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float')) MAX(P, F); ^~~~~~~~~ t.m:1:78: note: instantiated from: #define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; }) ~~~ ^ ~~~ (ranges!) llvm-svn: 65090
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud