[llvm-branch-commits] [clang] 67bad64 - temp signed impelmentation
Albion Fung via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jun 25 13:35:39 PDT 2021
Author: Albion Fung
Date: 2021-06-25T15:35:28-05:00
New Revision: 67bad646076dfb46482b5bd5eeb80d14c168dcd4
URL: https://github.com/llvm/llvm-project/commit/67bad646076dfb46482b5bd5eeb80d14c168dcd4
DIFF: https://github.com/llvm/llvm-project/commit/67bad646076dfb46482b5bd5eeb80d14c168dcd4.diff
LOG: temp signed impelmentation
Added:
Modified:
clang/lib/CodeGen/CGBuiltin.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index ddd5605acaba..2f4955500f9c 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -15354,13 +15354,10 @@ Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID,
auto Signed = getIntegerWidthAndSignedness(CGM.getContext(),
E->getArg(1)->getType()).Signed;
- if (Signed) {
- dbgs() << "SIGNED\n";
+ if (Signed)
Ops[1] = Builder.CreateSExt(Ops[1], Int32Ty);
- } else {
- dbgs() << "UNSIGNED\n";
+ else
Ops[1] = Builder.CreateZExt(Ops[1], Int32Ty);
- }
return Builder.CreateCall(F, Ops);
}
More information about the llvm-branch-commits
mailing list