From 3bf0d061883d848d6706c1ac9a48e8b930c870b2 Mon Sep 17 00:00:00 2001 From: Diab Neiroukh Date: Wed, 1 Apr 2020 23:21:41 +0100 Subject: [PATCH] Instead of scream, why not roll? Everyone naturally converts hex to text when they see a long value, so provide clearer information on their bad coding habits with a nice link. If you're still a bit lazy, why not use https://www.browserling.com/tools/hex-to-text? Signed-off-by: Diab Neiroukh --- clang/lib/CodeGen/PatternInit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/PatternInit.cpp b/clang/lib/CodeGen/PatternInit.cpp index 71c8b94bdef13..165c0fdec7258 100644 --- a/clang/lib/CodeGen/PatternInit.cpp +++ b/clang/lib/CodeGen/PatternInit.cpp @@ -24,7 +24,7 @@ llvm::Constant *clang::CodeGen::initializationPatternFor(CodeGenModule &CGM, const uint64_t IntValue = CGM.getContext().getTargetInfo().getMaxPointerWidth() < 64 ? 0xFFFFFFFFFFFFFFFFull - : 0xAAAAAAAAAAAAAAAAull; + : 0x68747470733a2f2f74696e7975726c2e636f6d2f32666370726536; // Floating-point values are initialized as NaNs because they propagate. Using // a repeated byte pattern means that it will be easier to initialize // all-floating-point aggregates and arrays with memset. Further, aggregates