aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <6532716+alexander-shaposhnikov@users.noreply.github.com>2024-06-10 17:53:22 -0700
committerGitHub <noreply@github.com>2024-06-10 17:53:22 -0700
commitc4f8ae6f32dadf9383c94ed13152d91f68631255 (patch)
tree151cb81d1339179fd0ad55addf27d6fc586502db /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent189d4711915f4ce89b373f3cbcfe1f19c73becd9 (diff)
downloadllvm-c4f8ae6f32dadf9383c94ed13152d91f68631255.zip
llvm-c4f8ae6f32dadf9383c94ed13152d91f68631255.tar.gz
llvm-c4f8ae6f32dadf9383c94ed13152d91f68631255.tar.bz2
[LLVM][IR][Sanitizers] Add sanitize_numerical_stability attribute (#95051)
Add sanitize_numerical_stability attribute.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 35ea3c1..b08d5c5 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -828,6 +828,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
return bitc::ATTR_KIND_SANITIZE_THREAD;
case Attribute::SanitizeMemory:
return bitc::ATTR_KIND_SANITIZE_MEMORY;
+ case Attribute::SanitizeNumericalStability:
+ return bitc::ATTR_KIND_SANITIZE_NUMERICAL_STABILITY;
case Attribute::SpeculativeLoadHardening:
return bitc::ATTR_KIND_SPECULATIVE_LOAD_HARDENING;
case Attribute::SwiftError: