summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/expression-traits.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-08-12 04:31:38 +0000
committerChris Lattner <sabre@nondot.org>2011-08-12 04:31:38 +0000
commit1ec8114eb82162e8dc25eb3ff020bf0f3bf8b88b (patch)
treec1ed855d334bbb20af2c8505d8d767ad1c33cc5f /clang/test/SemaCXX/expression-traits.cpp
parenta2dee81dec16c63bd709411ec6aa695fb3be3e1b (diff)
downloadbcm5719-llvm-1ec8114eb82162e8dc25eb3ff020bf0f3bf8b88b.tar.gz
bcm5719-llvm-1ec8114eb82162e8dc25eb3ff020bf0f3bf8b88b.zip
Fix an obscure bug in PointerUnion that would bite PointerUnion3/4. Basically,
when checking isNull(), we'd pick off the sentinel bit for the outer PointerUnion, but would not recursively convert the inner pointerunion to bool, so if *its* sentinel bit is set, isNull() would incorrectly return false. No testcase, because someone hit this when they were trying to refactor code to use PointerUnion3, but they since found a better solution. llvm-svn: 137428
Diffstat (limited to 'clang/test/SemaCXX/expression-traits.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud