[PATCH] D34992: Emit static constexpr member as available_externally definition
Mehdi AMINI via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 5 11:48:40 PDT 2017
mehdi_amini added inline comments.
================
Comment at: clang/test/CodeGenCXX/cxx11-extern-constexpr.cpp:12
+// CHECK: @_ZN3Foo4BAR2E = external constant i32,
+ static const int BAR2 = 43;
+};
----------------
Note: I'm not sure if the standard allows us to assume that we can fold the value for BAR2 without seeing the definition here?
(so we could be even more aggressive)
================
Comment at: clang/test/CodeGenCXX/cxx11-extern-constexpr.cpp:15
+// CHECK: @_ZL4BAR3 = available_externally constant i32 44,
+static constexpr int BAR3 = 44;
+
----------------
Looks like I have a bug here, this should be an internal.
https://reviews.llvm.org/D34992
More information about the cfe-commits
mailing list