summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorwangpc <pc.wang@linux.alibaba.com>2023-02-07 10:57:45 +0800
committerwangpc <pc.wang@linux.alibaba.com>2023-02-07 11:00:25 +0800
commit3df16e6f6e4d933f3839003e29b8a4b70e4c7ec8 (patch)
treea26f5258df55f03718571a3ba77ae17f57120b53 /clang/lib/CodeGen/CodeGenModule.cpp
parent3058cb74338edbf1b7eec495ba2436e94d2d48fa (diff)
Revert "[RISCV] Allow mismatched SmallDataLimit and use Min for conflicting values"
This reverts commit 28bd84f55fc087d4aefd3fe5360f8648d1d50980 because `CodeGen/RISCV/rvv-intrinsics-handcrafted/vlenb.c` hasn't been updated.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index e9d088da01f1..24b63372500b 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -980,7 +980,7 @@ void CodeGenModule::EmitOpenCLMetadata() {
void CodeGenModule::EmitBackendOptionsMetadata(
const CodeGenOptions CodeGenOpts) {
if (getTriple().isRISCV()) {
- getModule().addModuleFlag(llvm::Module::Min, "SmallDataLimit",
+ getModule().addModuleFlag(llvm::Module::Error, "SmallDataLimit",
CodeGenOpts.SmallDataLimit);
}
}