================
@@ -85,7 +85,7 @@ llvm::Error decodeRecord(const Record &R, 
std::optional<Location> &Field,
   if (R[0] > INT_MAX)
     return llvm::createStringError(llvm::inconvertibleErrorCode(),
                                    "integer too large to parse");
-  Field.emplace((int)R[0], Blob, (bool)R[1]);
+  Field.emplace((int)R[0], (int)R[1], Blob, (bool)R[2]);
----------------
ilovepi wrote:

If we're touching these, lets use `static_cast<T>`. If C style casts are 
prevalent in the rest of the file, we should address those separately.

https://github.com/llvm/llvm-project/pull/135081
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to