diff options
| author | Devang Patel <dpatel@apple.com> | 2010-01-18 19:52:14 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-01-18 19:52:14 +0000 |
| commit | 696cb8d410a95ee2b08bac2fa87525f48fac11b7 (patch) | |
| tree | 713ad92b9fe40244fc74bdcaff5968374c179210 /llvm/test/FrontendC | |
| parent | ffcec8f0d8ab20d2c66e07a582acbda5e6c3775b (diff) | |
| download | bcm5719-llvm-696cb8d410a95ee2b08bac2fa87525f48fac11b7.tar.gz bcm5719-llvm-696cb8d410a95ee2b08bac2fa87525f48fac11b7.zip | |
While mapping llvm.dbg.declare intrinsic manually map its operand, if possible,
because it points to an alloca instruction through metadata.
llvm-svn: 93757
Diffstat (limited to 'llvm/test/FrontendC')
| -rw-r--r-- | llvm/test/FrontendC/2010-01-18-Inlined-Debug.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/2010-01-18-Inlined-Debug.c b/llvm/test/FrontendC/2010-01-18-Inlined-Debug.c new file mode 100644 index 00000000000..4aec7b26476 --- /dev/null +++ b/llvm/test/FrontendC/2010-01-18-Inlined-Debug.c @@ -0,0 +1,12 @@ +// PR: 6058 +// RUN: %llvmgcc -g -S %s -o - | llc -O0 -o /dev/null + +static inline int foo(double) __attribute__ ((always_inline)); +static inline int foo(double __x) { return __x; } + +void bar(double x) { + foo(x); +} + + + |

