Skip to content

[NVPTX] Restore old va_list builtin type #100438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Jul 24, 2024

Summary:
This was changed to void * from char * unintentionally, put it back.

Summary:
This was changed to `void *` from `char *` unintentionally, put it back.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Jul 24, 2024
@llvmbot
Copy link
Member

llvmbot commented Jul 24, 2024

@llvm/pr-subscribers-clang

Author: Joseph Huber (jhuber6)

Changes

Summary:
This was changed to void * from char * unintentionally, put it back.


Full diff: https://github.com/llvm/llvm-project/pull/100438.diff

1 Files Affected:

  • (modified) clang/lib/Basic/Targets/NVPTX.h (+1-1)
diff --git a/clang/lib/Basic/Targets/NVPTX.h b/clang/lib/Basic/Targets/NVPTX.h
index 25dc979d882fd..1ef20ce733917 100644
--- a/clang/lib/Basic/Targets/NVPTX.h
+++ b/clang/lib/Basic/Targets/NVPTX.h
@@ -119,7 +119,7 @@ class LLVM_LIBRARY_VISIBILITY NVPTXTargetInfo : public TargetInfo {
   }
 
   BuiltinVaListKind getBuiltinVaListKind() const override {
-    return TargetInfo::VoidPtrBuiltinVaList;
+    return TargetInfo::CharPtrBuiltinVaList;
   }
 
   bool isValidCPUName(StringRef Name) const override {

@jhuber6 jhuber6 merged commit fb1e077 into llvm:main Jul 24, 2024
7 of 8 checks passed
@jhuber6
Copy link
Contributor Author

jhuber6 commented Jul 24, 2024

@tahonermann Feel free to backport this if you need to.

@zygoloid
Copy link
Collaborator

Are we also missing the test coverage that would have caught the regression?

yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary: This was changed to `void *` from `char *` unintentionally, put it back.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60250710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants