diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-04-25 07:20:05 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-04-25 07:20:05 +0000 |
| commit | 2196195a2a825cf60a455337133969c9870672c1 (patch) | |
| tree | 071f2e436f594acffac71b911b4e6aca79be84e8 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 4f2e3bb97d2b431dfc302ebbd43976c24739b15e (diff) | |
| download | clang-2196195a2a825cf60a455337133969c9870672c1.tar.gz clang-2196195a2a825cf60a455337133969c9870672c1.tar.bz2 clang-2196195a2a825cf60a455337133969c9870672c1.tar.xz | |
CodeGen: Avoid instrumenting implicit Decls more effectively
We don't assign counters for implicit Decls, but we were emitting code
to increment the (non-existent) counters and adding empty counter
lists in the output. This fixes the checks in assignRegionCounters and
emitInstrumentationData to do the right thing, and adds an assert for
the pathological case of emitting zero counters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
