]> granicus.if.org Git - llvm/commitdiff
NFC ProgrammersManual fix
authorPiotr Padlewski <piotr.padlewski@gmail.com>
Fri, 11 Nov 2016 22:12:15 +0000 (22:12 +0000)
committerPiotr Padlewski <piotr.padlewski@gmail.com>
Fri, 11 Nov 2016 22:12:15 +0000 (22:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286645 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ProgrammersManual.rst

index e4d3ddb7bd9d0557e270ba08bcdac07999e12f5b..9c3b424cf97b92cd4f6ed67a7d8b708872969b29 100644 (file)
@@ -149,7 +149,7 @@ rarely have to include this file directly).
 
   .. code-block:: c++
 
-    if (AllocationInst *AI = dyn_cast<AllocationInst>(Val)) {
+    if (auto *AI = dyn_cast<AllocationInst>(Val)) {
       // ...
     }