Skip to content

Commit 19e8aae

Browse files
Carl PetoCarl Peto
authored andcommitted
Missed these bits in the PR.
1 parent 4486754 commit 19e8aae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Basic/LangOptions.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ void LangOptions::setHasAtomicBitWidth(llvm::Triple triple) {
393393
setMaxAtomicBitWidth(128);
394394
break;
395395

396+
case llvm::Triple::ArchType::avr:
397+
setMaxAtomicBitWidth(0);
398+
break;
399+
396400
default:
397401
// Some exotic architectures may not support atomics at all. If that's the
398402
// case please update the switch with your flavor of arch. Otherwise assume
@@ -542,6 +546,7 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
542546
break;
543547
case llvm::Triple::ArchType::riscv64:
544548
addPlatformConditionValue(PlatformConditionKind::Arch, "riscv64");
549+
break;
545550
case llvm::Triple::ArchType::avr:
546551
addPlatformConditionValue(PlatformConditionKind::Arch, "avr");
547552
break;

0 commit comments

Comments
 (0)