[lld] r199166 - Do not use "auto" where actual type is obvious and short.
Rui Ueyama
ruiu at google.com
Mon Jan 13 16:06:50 PST 2014
Author: ruiu
Date: Mon Jan 13 18:06:50 2014
New Revision: 199166
URL: http://llvm.org/viewvc/llvm-project?rev=199166&view=rev
Log:
Do not use "auto" where actual type is obvious and short.
Modified:
lld/trunk/unittests/DriverTests/WinLinkModuleDefTest.cpp
Modified: lld/trunk/unittests/DriverTests/WinLinkModuleDefTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/WinLinkModuleDefTest.cpp?rev=199166&r1=199165&r2=199166&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/WinLinkModuleDefTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/WinLinkModuleDefTest.cpp Mon Jan 13 18:06:50 2014
@@ -25,7 +25,7 @@ protected:
moduledef::Parser parser(lexer, _alloc);
llvm::Optional<moduledef::Directive *> dir = parser.parse();
EXPECT_TRUE(dir.hasValue());
- auto *ret = dyn_cast<T>(dir.getValue());
+ T *ret = dyn_cast<T>(dir.getValue());
EXPECT_TRUE(ret != nullptr);
return ret;
}
More information about the llvm-commits
mailing list