[RDA] Try to fix build (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 8 Apr 2020 16:13:24 +0000 (18:13 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 8 Apr 2020 16:15:01 +0000 (18:15 +0200)
fuchsia-x86_64-linux builder fails with:

/b/fuchsia-x86_64-linux/llvm.src/llvm/include/llvm/ADT/TinyPtrVector.h:85:15:
error: no matching conversion for C-style cast from 'nullptr_t' to 'llvm::ReachingDef'
    RHS.Val = (EltTy)nullptr;

Let's see whether adding an explicit nullptr_t constructor helps.

llvm/include/llvm/CodeGen/ReachingDefAnalysis.h

index 8def1a6..b81e58f 100644 (file)
@@ -43,6 +43,7 @@ class ReachingDef {
   explicit ReachingDef(uintptr_t Encoded) : Encoded(Encoded) {}
 
 public:
+  ReachingDef(nullptr_t) : Encoded(0) {}
   ReachingDef(int Instr) : Encoded((Instr << 2) | 2) {}
   operator int() const { return ((int) Encoded) >> 2; }
 };