InstrProf: Fix coverage maps for conditional operators
authorJustin Bogner <mail@justinbogner.com>
Fri, 24 Apr 2015 23:37:57 +0000 (23:37 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 24 Apr 2015 23:37:57 +0000 (23:37 +0000)
commite3654ce7abc781fed9fd42fffb1bec23ef05a070
tree6c26cfde6a98112aa6196bc0178bdc9660ed6db6
parent8c384bbb3563a2a62fc19cf6044b1effd69e19db
InstrProf: Fix coverage maps for conditional operators

This fixes a crash when we're emitting coverage and a macro appears
between two binary conditional operators, ie, "foo ?: MACRO ?: bar",
and fixes the interaction of macros and conditional operators in
general.

llvm-svn: 235793
clang/lib/CodeGen/CoverageMappingGen.cpp
clang/test/CoverageMapping/macro-expressions.cpp