Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Unified Diff: src/IceIntrinsics.cpp

Issue 618313003: Subzero: Move to C++11 static_assert(). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceDefs.h ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceIntrinsics.cpp
diff --git a/src/IceIntrinsics.cpp b/src/IceIntrinsics.cpp
index 757455ff0753e4383bf8ccf6c37670fd387b2650..231dcae9925b377b47fda02eae16ea50d5af7bf4 100644
--- a/src/IceIntrinsics.cpp
+++ b/src/IceIntrinsics.cpp
@@ -26,7 +26,8 @@ namespace Ice {
namespace {
void __attribute__((unused)) xIntrinsicInfoSizeCheck() {
- STATIC_ASSERT(sizeof(Intrinsics::IntrinsicInfo) == 4);
+ static_assert(sizeof(Intrinsics::IntrinsicInfo) == 4,
jvoung (off chromium) 2014/10/01 17:32:53 Does static_assert() need to be wrapped in a unuse
Jim Stichnoth 2014/10/01 20:02:41 Good point. I removed the dummy function wrappers
+ "Unexpected sizeof(IntrinsicInfo)");
}
#define INTRIN(ID, SE, RT) { Intrinsics::ID, Intrinsics::SE, Intrinsics::RT }
« no previous file with comments | « src/IceDefs.h ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698