Skip to content

Commit

Permalink
NFC. Fixing rebase error
Browse files Browse the repository at this point in the history
Somehow managed to get a double-assignment in there. Thanks @erichkeane
for pointing it out!
  • Loading branch information
llvm-beanz committed Mar 29, 2022
1 parent f311f93 commit 7a94a03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/lib/Frontend/InitPreprocessor.cpp
Expand Up @@ -398,9 +398,8 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
Builder.defineMacro("__SHADER_STAGE_LIBRARY",
Twine((uint32_t)ShaderStage::Library));
// The current shader stage itself
uint32_t StageInteger = StageInteger =
(uint32_t)TI.getTriple().getEnvironment() -
(uint32_t)llvm::Triple::Pixel;
uint32_t StageInteger = (uint32_t)TI.getTriple().getEnvironment() -
(uint32_t)llvm::Triple::Pixel;

Builder.defineMacro("__SHADER_TARGET_STAGE", Twine(StageInteger));
// Add target versions
Expand Down

0 comments on commit 7a94a03

Please sign in to comment.