Skip to content

Commit 81f1d61

Browse files
committed
Reland [NFC][CLANG] Fix nullptr dereference issue in SetValueDataBasedOnQualType()
This reverts commit 2b9ce77, which was a temporary revert to get rebranch working.
1 parent 6455bc9 commit 81f1d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Interpreter/Interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ static void SetValueDataBasedOnQualType(Value &V, unsigned long long Data) {
768768
if (const auto *ET = QT->getAs<EnumType>())
769769
QT = ET->getDecl()->getIntegerType();
770770

771-
switch (QT->getAs<BuiltinType>()->getKind()) {
771+
switch (QT->castAs<BuiltinType>()->getKind()) {
772772
default:
773773
llvm_unreachable("unknown type kind!");
774774
#define X(type, name) \

0 commit comments

Comments
 (0)