Skip to content

Commit daef7bc

Browse files
Fix for demangle-fuzzer tool and minor refactoring
demangle-fuzzer had an extra parenthesis introduced by previous commit in this PR and it was not formatted properly. In ABI tests, renamed `reset` parameter to match `invokeParser`, and did a few more minor styling changes.
1 parent 1bcad8b commit daef7bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/unittests/Analysis/VectorFunctionABITest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class VFABIParserTest : public ::testing::Test {
2121
// Parser output.
2222
VFInfo Info;
2323
// Reset the data needed for the test.
24-
void reset(const StringRef SFunTy) {
24+
void reset(const StringRef ScalarFTyStr) {
2525
M = parseAssemblyString("declare void @dummy()", Err, Ctx);
2626
EXPECT_NE(M.get(), nullptr) << "Loading an invalid module.\n "
2727
<< Err.getMessage() << "\n";
28-
Type *Ty = parseType(SFunTy, Err, *(M.get()));
28+
Type *Ty = parseType(ScalarFTyStr, Err, *(M.get()));
2929
ScalarFTy = dyn_cast<FunctionType>(Ty);
3030
EXPECT_NE(ScalarFTy, nullptr)
31-
<< "Invalid function type string: " << SFunTy << "\n"
31+
<< "Invalid function type string: " << ScalarFTyStr << "\n"
3232
<< Err.getMessage() << "\n";
3333
// Reset the VFInfo
3434
Info = VFInfo();

0 commit comments

Comments
 (0)