You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this code for I32Ty is FunctionTy, I32Ty should be isIntegerTy!!!
Reproduction steps as follows:
you can search llvm src LLVMPasses PassBuilderPipeLines.cpp, in this file has a lot of internel pass, you can find any one for module pass.
The Issue only happend in xcode(15 beta) clang, clang dir is /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang. if I compile the open source code clang ..llvm to test Type::getInt32Ty method, it is IntegerTy. Maybe Xcode15-beta2'clang have some problems.
Type *I32Ty = Type::getInt32Ty(M.getContext()); if (I32Ty->isIntegerTy()) { errs() << "xxx : I32Ty isIntegerTy\n"; } else if (I32Ty->isFunctionTy()) { errs() << "xxx : I32Ty isFunctionTy\n"; } else { errs() << "xxx : I32Ty isUnknown\n"; }
this code for I32Ty is FunctionTy, I32Ty should be isIntegerTy!!!
Reproduction steps as follows:
you can search llvm src LLVMPasses PassBuilderPipeLines.cpp, in this file has a lot of internel pass, you can find any one for module pass.
for example: Annotation2MetadataPass
PreservedAnalyses Annotation2MetadataPass::run(Module &M, ModuleAnalysisManager &AM) { Type *I32Ty = Type::getInt32Ty(M.getContext()); if (I32Ty->isIntegerTy()) { errs() << "xxx : I32Ty isIntegerTy\n"; } else if (I32Ty->isFunctionTy()) { errs() << "xxx : I32Ty isFunctionTy\n"; } else { errs() << "xxx : I32Ty isUnknown\n"; } convertAnnotation2Metadata(M); return PreservedAnalyses::all(); }
The text was updated successfully, but these errors were encountered: