[llvm] r214761 - Reapply "DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself."

Tim Northover t.p.northover at gmail.com
Tue Aug 5 07:29:43 PDT 2014


Hi David,

On 4 August 2014 20:30, David Blaikie <dblaikie at gmail.com> wrote:
> Author: dblaikie
> Date: Mon Aug  4 14:30:08 2014
> New Revision: 214761
>
> URL: http://llvm.org/viewvc/llvm-project?rev=214761&view=rev
> Log:
> Reapply "DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself."

I'm afraid this one seems to be causing some problems with
self-hosting on Darwin.

>      // FIXME: There shouldn't be any variables without DIEs.
> -    if (!VariableDie)
> -      continue;
> +    assert(VariableDie);

This assertion is triggering for me.

A Clang command causing the assert (from a CMake build dir with libc++
symlinked into include) is:

$ bin/clang -g -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D
__STDC_LIMIT_MACROS -stdlib=libc++ -O2 -std=c++11
-fvisibility-inlines-hidden  -fno-rtti -x c++
../llvm/lib/Analysis/AliasSetTracker.cpp -I include/ -I include/clang/
-I ../llvm/include/

If that doesn't work for you, I've attached the preprocessed output,
which also triggers it (even on Linux) with:
$ bin/clang++ -target x86_64-apple-macosx10.9 -std=c++11 Analysis.cpp -g -O2 -c

Could you take a look?

Cheers.

Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Analysis.cpp
Type: text/x-c++src
Size: 2015597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140805/7cc493be/attachment.cpp>


More information about the llvm-commits mailing list