================ @@ -2196,8 +2197,32 @@ llvm::ConstantInt *CodeGenModule::CreateKCFITypeId(QualType T) { if (getCodeGenOpts().SanitizeCfiICallNormalizeIntegers) Out << ".normalized"; - return llvm::ConstantInt::get(Int32Ty, - static_cast<uint32_t>(llvm::xxHash64(OutName))); + uint32_t OutHash = static_cast<uint32_t>(llvm::xxHash64(OutName)); + const auto &Triple = getTarget().getTriple(); + if (Triple.isX86() && Triple.isArch64Bit() && Triple.isOSLinux()) { ---------------- sirmc wrote:
-> `if (FnType && Triple.isX86() && Triple.isArch64Bit() && Triple.isOSLinux())` Just to make sure that FnType isn't a null pointer. https://github.com/llvm/llvm-project/pull/117121 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits