[PATCH] D24158: Try contextually converting condition of constexpr if to Boolean value
Ismail Pazarbasi via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 7 10:39:21 PDT 2016
ismailp added a comment.
Thank you for reviewing.
Sure, I'll try to look into those conversions as well.
Comment at: test/CodeGenCXX/cxx1z-constexpr-if.cpp:2
@@ -1,2 +1,3 @@
// RUN: %clang_cc1 -std=c++1z %s -emit-llvm -o - | FileCheck %s --implicit-check-not=should_not_be_used
+// RUN: %clang_cc1 -std=c++1z %s -DCHECK_CONVERSION -verify %s
Is there a more elegant way to do this? The previous check didn't seem to work with diagnostics.
More information about the cfe-commits