[clang] 7a94a03 - NFC. Fixing rebase error

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 11:19:13 PDT 2022


Author: Chris Bieneman
Date: 2022-03-29T13:19:06-05:00
New Revision: 7a94a032f02515a66d2820c1bc331424be25f6d8

URL: https://github.com/llvm/llvm-project/commit/7a94a032f02515a66d2820c1bc331424be25f6d8
DIFF: https://github.com/llvm/llvm-project/commit/7a94a032f02515a66d2820c1bc331424be25f6d8.diff

LOG: NFC. Fixing rebase error

Somehow managed to get a double-assignment in there. Thanks @erichkeane
for pointing it out!

Added: 
    

Modified: 
    clang/lib/Frontend/InitPreprocessor.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 011a6743214a7..592e7b0076f7b 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -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


        


More information about the cfe-commits mailing list