]> granicus.if.org Git - llvm/commitdiff
Remove now useless trailing nullptr in StructType::get
authorSerge Guelton <sguelton@quarkslab.com>
Thu, 11 May 2017 08:46:02 +0000 (08:46 +0000)
committerSerge Guelton <sguelton@quarkslab.com>
Thu, 11 May 2017 08:46:02 +0000 (08:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302779 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIAnnotateControlFlow.cpp

index d8cb98fe1b199e83d9aa2965f387e941349720f9..8cb35c506135361cabb23912d247d3bef2a63040 100644 (file)
@@ -126,7 +126,7 @@ bool SIAnnotateControlFlow::doInitialization(Module &M) {
   Void = Type::getVoidTy(Context);
   Boolean = Type::getInt1Ty(Context);
   Int64 = Type::getInt64Ty(Context);
-  ReturnStruct = StructType::get(Boolean, Int64, (Type *)nullptr);
+  ReturnStruct = StructType::get(Boolean, Int64);
 
   BoolTrue = ConstantInt::getTrue(Context);
   BoolFalse = ConstantInt::getFalse(Context);